[Treepkg-commits] r521 - trunk/treepkg
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Sep 2 11:26:26 CEST 2011
Author: bricks
Date: 2011-09-02 11:26:26 +0200 (Fri, 02 Sep 2011)
New Revision: 521
Modified:
trunk/treepkg/git.py
Log:
Set default branch to "master"
Modified: trunk/treepkg/git.py
===================================================================
--- trunk/treepkg/git.py 2011-09-02 08:45:28 UTC (rev 520)
+++ trunk/treepkg/git.py 2011-09-02 09:26:26 UTC (rev 521)
@@ -36,13 +36,13 @@
self.url = url
self.local_branch = "local"
self.branch = branch
+ if not branch:
+ self.branch = "master"
if ":" in branch:
branches = branch.split(":")
self.local_branch = branches[0]
self.branch = branches[1]
# use master as default
- if not branch:
- self.branch = "master"
def checkout(self, localdir):
"""Clones the repository at url into the localdir"""
More information about the Treepkg-commits
mailing list