Skip to content

Commit

Permalink
[dorelease] Suppress error output on tag checking
Browse files Browse the repository at this point in the history
  • Loading branch information
achilleas-k committed Jan 17, 2018
1 parent ecd19d5 commit ea964e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/dorelease.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import sys
import re
from subprocess import check_output, call, CalledProcessError
from subprocess import check_output, call, CalledProcessError, DEVNULL
from difflib import Differ
import requests
import json
Expand Down Expand Up @@ -188,7 +188,7 @@ def update_ci_confs(newver):

def tag_head(newverstr):
try:
tagrev = check_output(["git", "rev-parse", newverstr])
tagrev = check_output(["git", "rev-parse", newverstr], stderr=DEVNULL)
headrev = check_output(["git", "rev-parse", "HEAD"])
if tagrev != headrev:
die("Tag or object named {} already exists "
Expand Down

0 comments on commit ea964e9

Please sign in to comment.