Cloning from a repo without "current branch"
[gitweb.git] / git-remote.perl
index 576379912793c9740620892cd3ee1cf7d2f18cfe..b59cafdf87f7a800f85b6b99fc0344c7102e892a 100755 (executable)
@@ -258,6 +258,7 @@ sub show_remote {
        if ($info->{'PUSH'}) {
                my @pushed = map {
                        s|^refs/heads/||;
+                       s|^\+refs/heads/|+|;
                        s|:refs/heads/|:|;
                        $_;
                } @{$info->{'PUSH'}};