Skip to content

Commit a002219

Browse files
authored
Use correct usage of subprocess.check_output() (#4368)
1 parent a923f64 commit a002219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/post/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def main():
179179
sys.exit(1)
180180

181181
# bail if tag_name does not exist in the repo
182-
if not check_output(("git show-ref --tags refs/tags/%s" % tag_name), text=True):
182+
if not check_output(("git", "show-ref", "--tags", "refs/tags/%s" % tag_name), text=True):
183183
print("ERROR: Couldn't find tag %s in repo (git show-ref)!" % tag_name)
184184
sys.exit(1)
185185

0 commit comments

Comments
 (0)