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

Commit5d4dd2f

Browse files
committed
This should fix tests, as tree[0] is not a tree anymore
1 parent466ed9c commit5d4dd2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/test/test_docs.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def test_references_and_objects(self, rw_dir):
320320
self.assertEqual(tree['smmap'],tree/'smmap')# access by index and by sub-path
321321
forentryintree:# intuitive iteration of tree members
322322
print(entry)
323-
blob=tree.trees[0].blobs[0]# let's get a blob in a sub-tree
323+
blob=tree.trees[9].blobs[0]# let's get a blob in a sub-tree
324324
assertblob.name
325325
assertlen(blob.path)<len(blob.abspath)
326326
self.assertEqual(tree.trees[0].name+'/'+blob.name,blob.path)# this is how relative blob path generated

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp