aboutsummaryrefslogtreecommitdiff
path: root/git-gui
diff options
context:
space:
mode:
Diffstat (limited to 'git-gui')
-rwxr-xr-xgit-gui2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-gui b/git-gui
index 69ebd9095..48e781dd3 100755
--- a/git-gui
+++ b/git-gui
@@ -266,7 +266,7 @@ proc repository_state {ctvar hdvar mhvar} {
if {[catch {set current_branch [exec git symbolic-ref HEAD]}]} {
set current_branch {}
} else {
- regsub ^refs/(heads|tags)/ \
+ regsub ^refs/((heads|tags|remotes)/)? \
$current_branch \
{} \
current_branch