[X2Go-Commits] [maintenancescripts] 01/01: git/hooks/update-script._irkerhook.py_: fix syntax error...

git-admin at x2go.org git-admin at x2go.org
Mon May 4 00:53:32 CEST 2015


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

x2go pushed a commit to branch master
in repository maintenancescripts.

commit d578c6bfd489cd9c0fd0a917926930063f505150
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Mon May 4 00:53:26 2015 +0200

    git/hooks/update-script._irkerhook.py_: fix syntax error...
---
 git/hooks/update-script._irkerhook.py_ |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/git/hooks/update-script._irkerhook.py_ b/git/hooks/update-script._irkerhook.py_
index 18ba5d1..254088e 100755
--- a/git/hooks/update-script._irkerhook.py_
+++ b/git/hooks/update-script._irkerhook.py_
@@ -278,9 +278,9 @@ class GitExtractor(GenericExtractor):
         if not commit.rev:
             commit.rev = commit.commit[:12]
         # Extract the meta-information for the commit
-        if self.rebase == ''
+        if self.rebase == '':
             commit.files = do("git diff-tree -r --name-only " + shellquote(commit.commit))
-        else
+        else:
             commit.files = do("git diff-tree -r --name-only " + shellquote(self.rebase) + ".." + shellquote(commit.commit))
         commit.files = " ".join(commit.files.strip().split("\n")[1:])
         # Design choice: for git we ship only the first message line, which is
@@ -297,7 +297,7 @@ class GitExtractor(GenericExtractor):
 
         commit.logmsg = "\n".join(tmp)
 
-        if self.rebase != ''
+        if self.rebase != '':
             commit.logmsg = "%(cyan)sRebase detected.%(reset)s\nOld ref: " + self.rebase + "\nNew HEAD: " + commit.commit + "\nPlease check the URL for more information.";
         # This discards the part of the author's address after @.
         # Might be be nice to ship the full email address, if not
@@ -306,7 +306,7 @@ class GitExtractor(GenericExtractor):
         commit.author = commit.mail.split("@")[0]
         commit.author_date, commit.commit_date = \
             do("git log -1 '--pretty=format:%ai|%ci' " + shellquote(commit.commit)).split("|")
-        if self.rebase != ''
+        if self.rebase != '':
             commit.commit = self.rebase + ".." + commit.commit
         return commit
 

--
Alioth's /srv/git/code.x2go.org/maintenancescripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git


More information about the x2go-commits mailing list