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

Commit039e265

Browse files
committed
fix(tests): remove dependency on sort order
Now we select the submodule by name, not by index. The latter is notdeterministic.Closes#335
1 parenta0acb22 commit039e265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/test/test_submodule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ def test_git_submodules_and_add_sm_with_new_commit(self, rwdir):
697697

698698
# submodules are retrieved from the current commit's tree, therefore we can't really get a new submodule
699699
# object pointing to the new submodule commit
700-
sm_too=parent.submodules[0]
700+
sm_too=parent.submodules['module_moved']
701701
assertparent.head.commit.tree[sm.path].binsha==sm.binsha
702702
assertsm_too.binsha==sm.binsha,"cached submodule should point to the same commit as updated one"
703703

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp