X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=common.py;h=244b30ac2c44e9dea012bfcdac5bd0602ad92047;hb=6a1d489cc57306b8d45559f4c2d9b3595b39af56;hp=65d5b2da7538968414c193c635e2007e0b7ee15c;hpb=1b6d719d54ab2108c8642e51183c24b4cde2cae4;p=platform%2Fupstream%2Fgstreamer.git diff --git a/common.py b/common.py index 65d5b2d..244b30a 100644 --- a/common.py +++ b/common.py @@ -34,11 +34,6 @@ class Colors: -def git(args, repository_path): - if not isinstance(args, list): - args = [args] - - return subprocess.check_output(["git"] + args, cwd=repository_path, +def git(*args, repository_path='.'): + return subprocess.check_output(["git"] + list(args), cwd=repository_path, stderr=subprocess.STDOUT).decode() - -