Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit 713d941

Browse files
authored
Fix error try_to_run using | without shell=True (#298)
1 parent dd8fe1a commit 713d941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codecov/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ def main(*argv, **kwargs):
869869
try:
870870
query["commit"] = try_to_run(
871871
["git", "rev-parse", "HEAD"]
872-
) or try_to_run(["hg", "id", "-i", "--debug", "|", "tr", "-d", "'+'"])
872+
) or try_to_run(["hg", "log", "-r", ".", "-T", "{node}"])
873873
write(" -> Got sha from git/hg")
874874

875875
except: # pragma: no cover

0 commit comments

Comments
 (0)