From eeeec24b36ccf112ed66bbff04e534326a448fe1 Mon Sep 17 00:00:00 2001 From: paugier Date: Fri, 18 Sep 2020 15:47:09 +0200 Subject: [PATCH] Fix error try_to_run using | without shell=True --- codecov/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codecov/__init__.py b/codecov/__init__.py index 370c03ff..e337717e 100644 --- a/codecov/__init__.py +++ b/codecov/__init__.py @@ -869,7 +869,7 @@ def main(*argv, **kwargs): try: query["commit"] = try_to_run( ["git", "rev-parse", "HEAD"] - ) or try_to_run(["hg", "id", "-i", "--debug", "|", "tr", "-d", "'+'"]) + ) or try_to_run(["hg", "log", "-r", ".", "-T", "{node}"]) write(" -> Got sha from git/hg") except: # pragma: no cover