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

Commit553500a

Browse files
tanaga9Byron
authored andcommitted
Check if submodule exists before referencing
1 parentebf4656 commit553500a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎git/diff.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,8 @@ def __init__(self, repo, a_rawpath, b_rawpath, a_blob_id, b_blob_id, a_mode,
283283
ifrepoanda_rawpath:
284284
forsubmoduleinrepo.submodules:
285285
ifsubmodule.path==a_rawpath.decode("utf-8"):
286-
repo=submodule.module()
286+
ifsubmodule.module_exists():
287+
repo=submodule.module()
287288
break
288289

289290
ifa_blob_idisNoneora_blob_id==self.NULL_HEX_SHA:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp