We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c96572c commit a4b7963Copy full SHA for a4b7963
testing/util.py
@@ -17,5 +17,5 @@ def git_commit(*args, **kwargs):
17
18
19
def get_default_branch():
20
- cmd = ('git', 'config', '--get', 'init.defaultBranch')
21
- return subprocess.getoutput(cmd).strip() or 'master'
+ ret = subprocess.getoutput('git config init.defaultBranch').strip()
+ return ret or 'master'
0 commit comments