git-p4: change "commitish" typo to "committish"
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 10 May 2018 12:43:00 +0000 (12:43 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 11 May 2018 03:09:55 +0000 (12:09 +0900)
This was the only occurrence of "commitish" in the tree, but as the
log will reveal we've had others in the past. Fixes up code added in
00ad6e3182 ("git-p4: work with a detached head", 2015-11-21).

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Acked-by: Luke Diamand <luke@diamand.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py
index 7bb9cadc69738a4348bb54ccce50d6bd35a0753f..1afa87cd9db568914faa508fc24bc7c8ae80f32b 100755 (executable)
--- a/git-p4.py
+++ b/git-p4.py
@@ -2099,11 +2099,11 @@ def run(self, args):
 
         commits = []
         if self.master:
-            commitish = self.master
+            committish = self.master
         else:
-            commitish = 'HEAD'
+            committish = 'HEAD'
 
-        for line in read_pipe_lines(["git", "rev-list", "--no-merges", "%s..%s" % (self.origin, commitish)]):
+        for line in read_pipe_lines(["git", "rev-list", "--no-merges", "%s..%s" % (self.origin, committish)]):
             commits.append(line.strip())
         commits.reverse()