diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-06-24 21:19:07 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-06-24 21:19:07 +0200 |
commit | 402a6c2808db4333217aa300d0312836fd7923bd (patch) | |
tree | 75936cb1c63dd34f7866c467ecd2ddb801425213 /test/git/test_index.py | |
parent | feb1ea0f4aacb9ea6dc4133900e65bf34c0ee02d (diff) | |
download | gitpython-402a6c2808db4333217aa300d0312836fd7923bd.tar.gz |
IndexFile.add: writing of the index file can now optionally be turned off. The default is to write the physical index, which is the behaviour you would expect
Diffstat (limited to 'test/git/test_index.py')
-rw-r--r-- | test/git/test_index.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/git/test_index.py b/test/git/test_index.py index 929d40a3..09b49aaa 100644 --- a/test/git/test_index.py +++ b/test/git/test_index.py @@ -171,7 +171,8 @@ class TestIndex(TestBase): # pretend there was a change, but we do not even bother adding a proper # sha for it ( which makes things faster of course ) manifest_fake_entry = BaseIndexEntry((manifest_entry[0], "\0"*20, 0, manifest_entry[3])) - rw_repo.index.add([manifest_fake_entry]) + # try write flag + rw_repo.index.add([manifest_fake_entry], write=False) # add actually resolves the null-hex-sha for us as a feature, but we can # edit the index manually assert rw_repo.index.entries[manifest_key].binsha != Object.NULL_BIN_SHA |