Mercurial > treepkg > treepkg
comparison treepkg/git.py @ 579:97a5e09c84dc tip
Fix: pass url to command expand to be able to checkout a new git repository
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Sat, 03 Sep 2011 12:32:32 +0000 |
parents | b8acd77fca60 |
children |
comparison
equal
deleted
inserted
replaced
578:bccd69dedbe5 | 579:97a5e09c84dc |
---|---|
49 self.local_branch = branches[0] | 49 self.local_branch = branches[0] |
50 self.branch = branches[1] | 50 self.branch = branches[1] |
51 | 51 |
52 def checkout(self, localdir): | 52 def checkout(self, localdir): |
53 """Clones the repository at url into the localdir""" | 53 """Clones the repository at url into the localdir""" |
54 run.call(cmdexpand("git clone -q $url $localdir", **locals())) | 54 run.call(cmdexpand("git clone -q $url $localdir", url=self.url, |
55 localdir=localdir)) | |
55 if self.branch: | 56 if self.branch: |
56 self.checkout_branch(localdir) | 57 self.checkout_branch(localdir) |
57 | 58 |
58 def checkout_branch(self, localdir): | 59 def checkout_branch(self, localdir): |
59 self.log_info("Switching to local branch '%s' for branch '%s'" %\ | 60 self.log_info("Switching to local branch '%s' for branch '%s'" %\ |