diff --git a/testing/util.py b/testing/util.py index c841a9a..75a81b4 100644 --- a/testing/util.py +++ b/testing/util.py @@ -17,5 +17,5 @@ def git_commit(*args, **kwargs): def get_default_branch(): - cmd = ('git', 'config', '--get', 'init.defaultBranch') - return subprocess.getoutput(cmd).strip() or 'master' + ret = subprocess.getoutput('git config init.defaultBranch').strip() + return ret or 'master'