Mercurial > treepkg
changeset 558:bee73fd5bb82
Set default branch to "master"
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Fri, 02 Sep 2011 09:26:26 +0000 |
parents | 9824e409388b |
children | 3fbf0ea1740a |
files | treepkg/git.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/treepkg/git.py Fri Sep 02 08:45:28 2011 +0000 +++ b/treepkg/git.py Fri Sep 02 09:26:26 2011 +0000 @@ -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"""