Skip to content

Commit b93ba7c

Browse files
committed
fix(submodule): don't fail if tracking branch can't be setup
Fixes #545
1 parent 5149c80 commit b93ba7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/objects/submodule/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ def update(self, recursive=False, init=True, to_latest_revision=False, progress=
537537
# make sure HEAD is not detached
538538
mrepo.head.set_reference(local_branch, logmsg="submodule: attaching head to %s" % local_branch)
539539
mrepo.head.ref.set_tracking_branch(remote_branch)
540-
except IndexError:
540+
except (IndexError, InvalidGitRepositoryError):
541541
log.warn("Failed to checkout tracking branch %s", self.branch_path)
542542
# END handle tracking branch
543543

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy