[Treepkg-commits] r522 - trunk/treepkg
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Sep 2 11:28:27 CEST 2011
Author: bricks
Date: 2011-09-02 11:28:27 +0200 (Fri, 02 Sep 2011)
New Revision: 522
Modified:
trunk/treepkg/git.py
Log:
Fix: use self.branch to check if it contains a ":" branch variable could be None
Modified: trunk/treepkg/git.py
===================================================================
--- trunk/treepkg/git.py 2011-09-02 09:26:26 UTC (rev 521)
+++ trunk/treepkg/git.py 2011-09-02 09:28:27 UTC (rev 522)
@@ -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
More information about the Treepkg-commits
mailing list