diff options
-rw-r--r-- | lib/git/repo.py | 1 | ||||
-rw-r--r-- | test/git/test_repo.py | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/git/repo.py b/lib/git/repo.py index d81106c0..52469e04 100644 --- a/lib/git/repo.py +++ b/lib/git/repo.py @@ -432,7 +432,6 @@ class Repo(object): alternates = property(_get_alternates, _set_alternates, doc="Retrieve a list of alternates paths or set a list paths to be used as alternates") - @property def is_dirty(self, index=True, working_tree=True, untracked_files=False): """ Returns diff --git a/test/git/test_repo.py b/test/git/test_repo.py index 4995d901..464cb43f 100644 --- a/test/git/test_repo.py +++ b/test/git/test_repo.py @@ -154,19 +154,19 @@ class TestRepo(TestBase): def test_is_dirty_with_bare_repository(self): self.rorepo._bare = True - assert_false(self.rorepo.is_dirty) + assert_false(self.rorepo.is_dirty()) def test_is_dirty(self): self.rorepo._bare = False for index in (0,1): for working_tree in (0,1): for untracked_files in (0,1): - assert self.rorepo.is_dirty in (True, False) + assert self.rorepo.is_dirty(index, working_tree, untracked_files) in (True, False) # END untracked files # END working tree # END index self.rorepo._bare = True - assert self.rorepo.is_dirty == False + assert self.rorepo.is_dirty() == False def test_head(self): assert self.rorepo.head.reference.object == self.rorepo.active_branch.object |