@matheusbsbs / matheus-bagliano / commits / d90d83a3a9
Fork 0

git-gui: Parse off refs/remotes when showing current branch.

Even though the user shouldn't have a remote branch checked out, if they do we should still show as short of the branch name as possible. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Shawn O. Pearce committed Nov 25, 2006 at 02:45 UTC d90d83a3a95e5fb4672906589ac0a19c19f1187b
1 file changed +1 -1
git-gui
+1 -1
@@ -266,7 +266,7 @@ proc repository_state {ctvar hdvar mhvar} {
266 if {[catch {set current_branch [exec git symbolic-ref HEAD]}]} {
267 set current_branch {}
268 } else {
269 - regsub ^refs/(heads|tags)/ \
269 + regsub ^refs/((heads|tags|remotes)/)? \
270 $current_branch \
271 {} \
272 current_branch