mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 00:41:00 +01:00
Merge pull request #1755 from t184256/gitstatus-allow-empty
Allow empty XONSH_GITSTATUS_ defs
This commit is contained in:
commit
12f9a928dc
1 changed files with 2 additions and 1 deletions
|
@ -36,7 +36,8 @@ def _DEFS():
|
|||
|
||||
|
||||
def _get_def(key):
|
||||
return builtins.__xonsh_env__.get('XONSH_GITSTATUS_' + key) or _DEFS[key]
|
||||
def_ = builtins.__xonsh_env__.get('XONSH_GITSTATUS_' + key)
|
||||
return def_ if def_ is not None else _DEFS[key]
|
||||
|
||||
|
||||
def _get_tag_or_hash():
|
||||
|
|
Loading…
Add table
Reference in a new issue