Skip to content

Commit ca13bd1

Browse files
committed
Fixed HeightCalculator's 1st parent not being ^1.
1 parent c1cf17e commit ca13bd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Verlite.Core/HeightCalculator.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public FromCommitOptions(
161161
if (i == 0)
162162
toVisit.Push((parents[i], height + 1, rootDescriptor, heightSinceBranch + 1));
163163
else
164-
toVisit.Push((parents[i], height + 1, $"{rootDescriptor}^{i}", 0));
164+
toVisit.Push((parents[i], height + 1, $"{rootDescriptor}^{i + 1}", 0));
165165
}
166166
}
167167
}

0 commit comments

Comments
 (0)