mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-06 09:20:57 +01:00
only catch CalledProcessError when determining git branch
This commit is contained in:
parent
38ee9195e6
commit
3cb3aeeb0e
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ def current_branch(cwd=None):
|
||||||
s = s.strip()
|
s = s.strip()
|
||||||
if s != '':
|
if s != '':
|
||||||
branch = s
|
branch = s
|
||||||
except:
|
except subprocess.CalledProcessError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
return branch
|
return branch
|
||||||
|
|
Loading…
Add table
Reference in a new issue