From: Ian Jackson Date: Tue, 30 Jan 2018 19:07:24 +0000 (+0000) Subject: parsecommit: fix Ix to not be off-by-one X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=fbb552c120675bfec1205e7f0095fd11eb21e66e;p=dgit.git parsecommit: fix Ix to not be off-by-one Signed-off-by: Ian Jackson --- diff --git a/git-debrebase b/git-debrebase index f254ddc9..d32c5f30 100755 --- a/git-debrebase +++ b/git-debrebase @@ -327,7 +327,7 @@ sub parsecommit ($;$) { foreach my $ph (@ph) { push @$p_ref, { - Ix => $#$p_ref, + Ix => scalar @$p_ref, CommitId => $ph, }; }