mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 17:00:58 +01:00
Allow empty XONSH_GITSTATUS_ defs
builtins.__xonsh_env__.get('XONSH_GITSTATUS_' + key) or _DEFS[key] swallowed not only None, but also empty strings, and was replaced with an explicit check for None.
This commit is contained in:
parent
e1757b1cf1
commit
d146da661d
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