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-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=05fb82ecec4c72996542948be09c32c70f4c6ef0;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, }; }