summaryrefslogtreecommitdiff
path: root/linaropy/git/gitrepo.py
diff options
context:
space:
mode:
Diffstat (limited to 'linaropy/git/gitrepo.py')
-rw-r--r--linaropy/git/gitrepo.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/linaropy/git/gitrepo.py b/linaropy/git/gitrepo.py
index a16501b..d8ddc74 100644
--- a/linaropy/git/gitrepo.py
+++ b/linaropy/git/gitrepo.py
@@ -141,12 +141,12 @@ class GitRepo(object):
return True
# TODO: Write unit tests for this.
- def log(self, number):
+ def log(self, numcommits):
try:
with cd(self.repodir):
- print git("log", "-n %d" % number)
+ print git("log", "-n %d" % numcommits)
except ErrorReturnCode:
- raise EnvironmentError("Unable to git log -n %d", number)
+ raise EnvironmentError("Unable to git log -n %d", numcommits)
# TODO: Does this need to 'cd' first?
def edit(self, toedit):