[CI] Fix kibana PR command again (#1386)

This commit is contained in:
Ross Wolf
2021-07-27 16:29:50 -06:00
committed by GitHub
parent 64977b01bd
commit 92937a1ad1
+3 -2
View File
@@ -331,9 +331,10 @@ def make_git(*prefix_args) -> Optional[Callable]:
return
def git(*args, show_output=False):
method = subprocess.call if show_output else subprocess.check_output
full_args = [git_exe] + prefix_args + [str(arg) for arg in args]
return method(full_args, encoding="utf-8").rstrip()
if show_output:
return subprocess.check_output(full_args, encoding="utf-8").rstrip()
return subprocess.check_call(full_args)
return git