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

Commitf2b820f

Browse files
committed
Store submodule name
1 parentd2ce495 commitf2b820f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎git/objects/submodule/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,9 @@ def add(cls, repo, name, path, url=None, branch=None, no_checkout=False):
358358
ifsm.exists():
359359
# reretrieve submodule from tree
360360
try:
361-
returnrepo.head.commit.tree[path]
361+
sm=repo.head.commit.tree[path]
362+
sm._name=name
363+
returnsm
362364
exceptKeyError:
363365
# could only be in index
364366
index=repo.index

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp