Skip to content

Commit a4b7963

Browse files
committed
fix command
1 parent c96572c commit a4b7963

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testing/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ def git_commit(*args, **kwargs):
1717

1818

1919
def get_default_branch():
20-
cmd = ('git', 'config', '--get', 'init.defaultBranch')
21-
return subprocess.getoutput(cmd).strip() or 'master'
20+
ret = subprocess.getoutput('git config init.defaultBranch').strip()
21+
return ret or 'master'

0 commit comments

Comments
 (0)