From 18b47a76f0f11d5f07d626a95fc0b0bd66758d02 Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Mon, 21 Apr 2014 10:25:03 -0700 Subject: [PATCH] fix branch info regex --- bash/bash_profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/bash_profile b/bash/bash_profile index 3f1bc6b..bb57ada 100644 --- a/bash/bash_profile +++ b/bash/bash_profile @@ -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"