From: Ian Jackson Date: Tue, 30 Jan 2018 19:07:24 +0000 (+0000) Subject: git-debrebase: parsecommit: fix Ix to not be off-by-one X-Git-Tag: archive/debian/5.0~289 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=96df45ea01695234877e93ed6e1eceac2d2c18aa;hp=29d1c96dcbf327e6bf78e689642a6fafd8ab1571;p=dgit.git git-debrebase: 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, }; }