changeset 559:3fbf0ea1740a

Fix: use self.branch to check if it contains a ":" branch variable could be None
author Bjoern Ricks <bricks@intevation.de>
date Fri, 02 Sep 2011 09:28:27 +0000
parents bee73fd5bb82
children 19a3051caebd
files treepkg/git.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/treepkg/git.py	Fri Sep 02 09:26:26 2011 +0000
+++ b/treepkg/git.py	Fri Sep 02 09:28:27 2011 +0000
@@ -38,8 +38,8 @@
         self.branch = branch
         if not branch:
             self.branch = "master"
-        if ":" in branch:
-            branches = branch.split(":")
+        if ":" in self.branch:
+            branches = self.branch.split(":")
             self.local_branch = branches[0]
             self.branch = branches[1]
         # use master as default
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)