Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-daemon: produce output when ready
[gitweb.git]
/
git-request-pull.sh
diff --git
a/git-request-pull.sh
b/git-request-pull.sh
index 7b5c777f0b137d9050dfed02eebe78f1a2ebd6c9..d7ba1178ae75019aba44f78d6cabd775a84ad526 100755
(executable)
--- a/
git-request-pull.sh
+++ b/
git-request-pull.sh
@@
-63,10
+63,8
@@
die "fatal: No commits in common between $base and $head"
find_matching_ref='
sub abbr {
my $ref = shift;
- if ($ref =~ s|refs/heads/||) {
+ if ($ref =~ s|refs/heads/||
|| $ref =~ s|refs/tags/||
) {
return $ref;
- } elsif ($ref =~ s|refs/tags/||) {
- return "tag $ref";
} else {
return $ref;
}