Index: fetch.py |
diff --git a/fetch.py b/fetch.py |
index 5d595f45aac6711407c7fc4250f303d8f0917dd7..62c58f0903c84b99ba40bd2b1fb06fc46625ff7f 100755 |
--- a/fetch.py |
+++ b/fetch.py |
@@ -128,6 +128,8 @@ class GclientGitCheckout(GclientCheckout, GitCheckout): |
'config', '--add', 'remote.origin.fetch', |
'+refs/tags/*:refs/tags/*', cwd=wd) |
self.run_git('config', 'diff.ignoreSubmodules', 'all', cwd=wd) |
+ if 'initial_branch' in self.spec: |
+ self.run_git('checkout', self.spec['initial_branch'], cwd=wd) |
class GclientGitSvnCheckout(GclientGitCheckout, SvnCheckout): |