We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5e798c4 + 8dbd44e commit cd78a5cCopy full SHA for cd78a5c
nightly-tarball/Builder.py
@@ -376,12 +376,11 @@ def prepare_source_tree(self):
376
# origin/<branch>/HEAD
377
self._logger.debug("Switching to branch: " + branch)
378
if not branch in repo.heads:
379
- # TODO: Can we avoid calling into repo.git here?
380
- repo.git.checkout('origin/' + branch, b=branch)
381
- repo.head.reference = repo.refs['origin/' + branch]
+ repo.git.checkout(branch)
+ repo.head.reference = repo.refs[branch]
382
383
# And pull in all the right submodules
384
- repo.submodule_update(recursive = True)
+ repo.git.submodule('update', '--init', '--recursive')
385
386
# wish I could figure out how to do this without resorting to
387
# shelling out to git :/
0 commit comments