git-p4: change "commitish" typo to "committish"
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>
Ævar Arnfjörð Bjarmason committed
May 10, 2018 at 12:43 UTC
89f32a92b4f04ab93fc52ef16fa628cbb2bddd7d
1 file changed
+3
-3
git-p4.py
+3
-3
@@ -2099,11 +2099,11 @@ class P4Submit(Command, P4UserMap):
2099
2100
commits = []
2101
if self.master:
2102
- commitish = self.master
2102
+ committish = self.master
2103
else:
2104
- commitish = 'HEAD'
2104
+ committish = 'HEAD'
2105
2106
- for line in read_pipe_lines(["git", "rev-list", "--no-merges", "%s..%s" % (self.origin, commitish)]):
2106
+ for line in read_pipe_lines(["git", "rev-list", "--no-merges", "%s..%s" % (self.origin, committish)]):
2107
commits.append(line.strip())
2108
commits.reverse()
2109