summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9a7d941)
raw | patch | inline | side by side (parent: 9a7d941)
author | Johannes Sixt <johannes.sixt@telecom.at> | |
Sat, 9 Jun 2007 20:34:16 +0000 (22:34 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 13 Jun 2007 05:26:07 +0000 (22:26 -0700) |
'git-remote show remote-name' lists the refs that are pushed to the remote
by showing the 'Push' line from the config file. But before showing it,
it shortened 'refs/heads/here:refs/heads/there' to 'here:there'. However,
if the Push line is prefixed with a plus, the ref was not shortened.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
by showing the 'Push' line from the config file. But before showing it,
it shortened 'refs/heads/here:refs/heads/there' to 'here:there'. However,
if the Push line is prefixed with a plus, the ref was not shortened.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-remote.perl | patch | blob | history |
diff --git a/git-remote.perl b/git-remote.perl
index 576379912793c9740620892cd3ee1cf7d2f18cfe..b59cafdf87f7a800f85b6b99fc0344c7102e892a 100755 (executable)
--- a/git-remote.perl
+++ b/git-remote.perl
if ($info->{'PUSH'}) {
my @pushed = map {
s|^refs/heads/||;
+ s|^\+refs/heads/|+|;
s|:refs/heads/|:|;
$_;
} @{$info->{'PUSH'}};