[X2Go-Commits] [maintenancescripts] 01/01: git/hooks/x2go-post-receive-close-bugs: fix variable copy and paste fail: rev => newrev.

git-admin at x2go.org git-admin at x2go.org
Fri Apr 24 22:42:20 CEST 2020


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository maintenancescripts.

commit 9e18ccbdb7d9337e860068e0ded129c6777c13fc
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Fri Apr 24 22:41:58 2020 +0200

    git/hooks/x2go-post-receive-close-bugs: fix variable copy and paste fail: rev => newrev.
---
 git/hooks/x2go-post-receive-close-bugs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/git/hooks/x2go-post-receive-close-bugs b/git/hooks/x2go-post-receive-close-bugs
index 4e56dc8..9082df9 100755
--- a/git/hooks/x2go-post-receive-close-bugs
+++ b/git/hooks/x2go-post-receive-close-bugs
@@ -183,8 +183,8 @@ while read oldrev newrev refname; do
               -e 's/^Distribution: UNRELEASED/Status: PREVIEW/' \
               -e 's/ UNRELEASED;/ PREVIEW;/' \
           | grep -Ev "^(Urgency:|Maintainer:).*" > "${d}"
-  version="$(get_version "${rev}" | sed -re 's/[0-9]+://' | cut -d '-' -f '1')"
-  bugs="$(get_bugs "${rev}")"
+  version="$(get_version "${newrev}" | sed -re 's/[0-9]+://' | cut -d '-' -f '1')"
+  bugs="$(get_bugs "${newrev}")"
   for bug in ${bugs}; do
     info "Marking X2Go issue #${bug} as resolved/closed."
     send_mail "${bug}" "${version}" "${oldrev}" "${newrev}" "${d}"

--
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