summaryrefslogtreecommitdiff
path: root/git/objects/commit.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/objects/commit.py')
-rw-r--r--git/objects/commit.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/git/objects/commit.py b/git/objects/commit.py
index 997fc590..f7201d90 100644
--- a/git/objects/commit.py
+++ b/git/objects/commit.py
@@ -174,8 +174,7 @@ class Commit(base.Object, Iterable, Diffable, Traversable, Serializable):
# as the empty paths version will ignore merge commits for some reason.
if paths:
return len(self.repo.git.rev_list(self.hexsha, '--', paths, **kwargs).splitlines())
- else:
- return len(self.repo.git.rev_list(self.hexsha, **kwargs).splitlines())
+ return len(self.repo.git.rev_list(self.hexsha, **kwargs).splitlines())
@property
def name_rev(self):