diff options
-rw-r--r-- | test/git/test_diff.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/git/test_diff.py b/test/git/test_diff.py index 9335aced..e559e62d 100644 --- a/test/git/test_diff.py +++ b/test/git/test_diff.py @@ -79,4 +79,11 @@ class TestDiff(TestBase): for key,value in assertion_map.items(): assert value, "Did not find diff for %s" % key # END for each iteration type + + # test path not existing in the index - should be ignored + c = self.rorepo.head.commit + cp = c.parents[0] + diff_index = c.diff(cp, ["does/not/exist"]) + assert len(diff_index) == 0 + |