X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=contrib%2Fhooks%2Fpost-receive-email;h=60cbab65d3f8230be3041a13fac2fd9f9b3018d5;hb=510a309e5e0997c73d97c85332a99d622f06ace6;hp=28a3c0e46ecf9951f3f42a025a288a65c70e0424;hpb=bf0fe35c938ac9f03d1369600b0c76e428a57507;p=git.git diff --git a/contrib/hooks/post-receive-email b/contrib/hooks/post-receive-email index 28a3c0e46..60cbab65d 100644 --- a/contrib/hooks/post-receive-email +++ b/contrib/hooks/post-receive-email @@ -615,7 +615,9 @@ show_new_revisions() revspec=$oldrev..$newrev fi - git rev-parse --not --branches | grep -v $(git rev-parse $refname) | + other_branches=$(git for-each-ref --format='%(refname)' refs/heads/ | + grep -F -v $refname) + git rev-parse --not $other_branches | if [ -z "$custom_showrev" ] then git rev-list --pretty --stdin $revspec