X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-request-pull.sh;h=e6438e24c7c787b55428a48eca9461d772db7ee6;hb=36384c979da7129393462c2208fd156b1453debd;hp=64960d65a1c2bf3c260c8fd46c4b298ae870679f;hpb=f2120eb4db3e3e3f9a336eb04fdc2319d7421536;p=git.git diff --git a/git-request-pull.sh b/git-request-pull.sh index 64960d65a..e6438e24c 100755 --- a/git-request-pull.sh +++ b/git-request-pull.sh @@ -63,7 +63,7 @@ die "fatal: No commits in common between $base and $head" find_matching_ref=' sub abbr { my $ref = shift; - if ($ref =~ s|refs/heads/|| || $ref =~ s|refs/tags/||) { + if ($ref =~ s|^refs/heads/|| || $ref =~ s|^refs/tags/|tags/|) { return $ref; } else { return $ref;