Skip to content

Commit

Permalink
git-p4: change "commitish" typo to "committish"
Browse files Browse the repository at this point in the history
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
00ad6e3 ("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>
  • Loading branch information
avar authored and gitster committed May 11, 2018
1 parent 7248672 commit 89f32a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions git-p4.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 89f32a9

Please sign in to comment.