Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb93ba7c

Browse files
committed
fix(submodule): don't fail if tracking branch can't be setup
Fixes#545
1 parent5149c80 commitb93ba7c

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-
exceptIndexError:
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)

[8]ページ先頭

©2009-2025 Movatter.jp