fix branch info regex
This commit is contained in:
@@ -15,7 +15,7 @@ function parse_git_branch {
|
||||
if [ $? -eq 0 ]; then
|
||||
git_status="$(git status 2> /dev/null)"
|
||||
git_stash="$(git stash list 2> /dev/null)"
|
||||
branch_pattern="^# On branch ([^${IFS}]*)"
|
||||
branch_pattern="^On branch ([^${IFS}]*)"
|
||||
detached_branch_pattern="# Not currently on any branch"
|
||||
remote_pattern="# Your branch is (.*) of"
|
||||
diverge_pattern="# Your branch and (.*) have diverged"
|
||||
|
||||
Reference in New Issue
Block a user