X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-request-pull.sh;h=e6438e24c7c787b55428a48eca9461d772db7ee6;hb=5eb660ecd1965c67be0051c46b8e8a56b28ff5b2;hp=d7ba1178ae75019aba44f78d6cabd775a84ad526;hpb=bdb8cb52962522e5444241242110780fc6a19c4f;p=git.git diff --git a/git-request-pull.sh b/git-request-pull.sh index d7ba1178a..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; @@ -96,7 +96,7 @@ git show -s --format='The following changes since commit %H: %s (%ci) are available in the git repository at: -' $baserev && +' $merge_base && echo " $url${ref+ $ref}" && git show -s --format=' for you to fetch changes up to %H: