[X2Go-Commits] [maintenancescripts] 02/08: git/hooks/x2go-post-receive-tag-pending: fix new tag/branch git rev-list behavior.
git-admin at x2go.org
git-admin at x2go.org
Tue Mar 3 14:25:53 CET 2020
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository maintenancescripts.
commit 11eccf6af8d144cd95c46a6ffb8c54e33c829083
Author: Mihai Moldovan <ionic at ionic.de>
Date: Mon Mar 2 11:05:39 2020 +0100
git/hooks/x2go-post-receive-tag-pending: fix new tag/branch git rev-list behavior.
Excluding anything in that call is useless, since we already do so with
the git rev-parse call before and actually counter-productive, since it
also excludes the branch the new refs are based on, leading to it
effectively becoming a nop.
---
git/hooks/x2go-post-receive-tag-pending | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/git/hooks/x2go-post-receive-tag-pending b/git/hooks/x2go-post-receive-tag-pending
index e2d2a2e..e10d611 100755
--- a/git/hooks/x2go-post-receive-tag-pending
+++ b/git/hooks/x2go-post-receive-tag-pending
@@ -123,7 +123,7 @@ while read oldrev newrev refname; do
# For new branches/tags, do something special. Hopefully.
typeset null_regex='^0{20,}$'
if [[ "${oldrev}" =~ ${null_regex} ]]; then
- git_rev_list=( 'git' 'rev-list' '--reverse' '--stdin' "${newrev}" '--not' '--branches=*' '--tags=*' )
+ git_rev_list=( 'git' 'rev-list' '--reverse' '--stdin' "${newrev}" )
fi
# Be careful with the "git rev-parse" line.
# It is supposed to filter out any commits that are already part of a (different) branch or tag,
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git
More information about the x2go-commits
mailing list