diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2018-05-20 13:00:53 -0600 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2018-05-20 13:00:53 -0600 |
commit | db38c7c3b2921783d955912262f87ee7dd8cd31b (patch) | |
tree | 19711b0495e8472fdfb85643c2c7ec7c5a5229c3 /plugins/git-prompt/gitstatus.py | |
parent | 1481f7aa67df42bdf45953231637194ac200d240 (diff) | |
parent | a600ab4b8578ca0a8e6c6dae0373033b9d8c201c (diff) | |
download | zsh-db38c7c3b2921783d955912262f87ee7dd8cd31b.tar.gz zsh-db38c7c3b2921783d955912262f87ee7dd8cd31b.tar.bz2 zsh-db38c7c3b2921783d955912262f87ee7dd8cd31b.zip |
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'plugins/git-prompt/gitstatus.py')
-rw-r--r-- | plugins/git-prompt/gitstatus.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/git-prompt/gitstatus.py b/plugins/git-prompt/gitstatus.py index a8eb8284b..14d875973 100644 --- a/plugins/git-prompt/gitstatus.py +++ b/plugins/git-prompt/gitstatus.py @@ -41,7 +41,7 @@ ahead, behind = 0, 0 status = [(line[0], line[1], line[2:]) for line in stdout.decode('utf-8').splitlines()] for st in status: if st[0] == '#' and st[1] == '#': - if re.search('Initial commit on', st[2]): + if re.search('Initial commit on', st[2]) or re.search('No commits yet on', st[2]): branch = st[2].split(' ')[-1] elif re.search('no branch', st[2]): # detached status branch = get_tagname_or_hash() |