[X2Go-Commits] [maintenancescripts] 01/04: git/hooks/update-script._irkerhook.py_: fix string literal in replacement string for branch/tag regular expression.

git-admin at x2go.org git-admin at x2go.org
Thu Jan 2 11:47:46 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 04968739d5a9df1a651e49b0d1afc1f93757f809
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Thu Jan 2 11:06:03 2020 +0100

    git/hooks/update-script._irkerhook.py_: fix string literal in replacement string for branch/tag regular expression.
---
 git/hooks/update-script._irkerhook.py_ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/git/hooks/update-script._irkerhook.py_ b/git/hooks/update-script._irkerhook.py_
index 0661e6a..078d333 100755
--- a/git/hooks/update-script._irkerhook.py_
+++ b/git/hooks/update-script._irkerhook.py_
@@ -361,7 +361,7 @@ class GitExtractor(GenericExtractor):
         if self.rebase != '':
             commit.logmsg = (u"%(cyan)sRebase detected.%(reset)s\nOld ref: " + self.rebase + "\nNew HEAD: " + commit.commit + "\nPlease check the URL for more information.") % self.__dict__
         if self.new:
-            ref_type = re.sub(r"^refs/([^/])*/.*", '\1', self.refname)
+            ref_type = re.sub(r"^refs/([^/])*/.*", r'\1', self.refname)
             ref_type_dict = { "heads": "branch", "tags": "tag" }
             commit.logmsg = (u"%(cyan)sNew " + ref_type_dict.get(ref_type, "unknown target") + " \"" + commit.branch +"\" created.%(reset)s New commit description(s) follow:\n") % self.__dict__
         # This discards the part of the author's address after @.

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