There was an error while loading. Please reload this page.
1 parent 5149c80 commit b93ba7cCopy full SHA for b93ba7c
1 file changed
git/objects/submodule/base.py
@@ -537,7 +537,7 @@ def update(self, recursive=False, init=True, to_latest_revision=False, progress=
537
# make sure HEAD is not detached
538
mrepo.head.set_reference(local_branch, logmsg="submodule: attaching head to %s" % local_branch)
539
mrepo.head.ref.set_tracking_branch(remote_branch)
540
- except IndexError:
+ except (IndexError, InvalidGitRepositoryError):
541
log.warn("Failed to checkout tracking branch %s", self.branch_path)
542
# END handle tracking branch
543
0 commit comments