mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 17:00:58 +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()
|
||||
if s != '':
|
||||
branch = s
|
||||
except:
|
||||
except subprocess.CalledProcessError:
|
||||
pass
|
||||
|
||||
return branch
|
||||
|
|
Loading…
Add table
Reference in a new issue