Strip out the remotes/ prefix of the branch name

pull/692/head
Travis Swicegood 2016-03-25 15:54:07 -05:00
parent 3923cf0276
commit 537ab3283b
1 changed files with 1 additions and 0 deletions

View File

@ -159,6 +159,7 @@ function git_prompt_vars {
[[ "${tracking_info}" =~ .+\[gone\]$ ]] && local branch_gone="true"
tracking_info=${tracking_info#\#\# ${SCM_BRANCH}...}
tracking_info=${tracking_info% [*}
tracking_info=${tracking_info#remotes/}
local remote_name=${tracking_info%%/*}
local remote_branch=${tracking_info#${remote_name}/}
local remote_info=""