Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 466ed9c commit 5d4dd2fCopy full SHA for 5d4dd2f
git/test/test_docs.py
@@ -320,7 +320,7 @@ def test_references_and_objects(self, rw_dir):
320
self.assertEqual(tree['smmap'], tree / 'smmap') # access by index and by sub-path
321
for entry in tree: # intuitive iteration of tree members
322
print(entry)
323
- blob = tree.trees[0].blobs[0] # let's get a blob in a sub-tree
+ blob = tree.trees[9].blobs[0] # let's get a blob in a sub-tree
324
assert blob.name
325
assert len(blob.path) < len(blob.abspath)
326
self.assertEqual(tree.trees[0].name + '/' + blob.name, blob.path) # this is how relative blob path generated
0 commit comments