Permalink
Browse files

Fix error cloning repos that had no master branch

  • Loading branch information...
1 parent 8ae2d91 commit c74181ac238ae911eadd0195607873fe7e1fe41f @toddlipcon toddlipcon committed Oct 21, 2009
Showing with 1 addition and 6 deletions.
  1. +1 −6 manifest.py
View
7 manifest.py
@@ -289,12 +289,7 @@ def clone(self):
if repo.command(["show-ref", "-q", "HEAD"]) != 0:
# There is no HEAD (maybe origin/master doesnt exist) so check out the tracking
# branch
- if self.tracks_remote_ref:
- repo.check_command(["checkout", "--track", "-b", self.tracking_branch,
- self.remote_ref])
- else:
- repo.check_command(["checkout", "-b", self.tracking_branch,
- self.remote_ref])
+ self.tracker.create_tracking_branch(repo)
else:
repo.check_command(["checkout"])

0 comments on commit c74181a

Please sign in to comment.