From 91df0b10fb5569145c4aee0b3ee2a27623e778a5 Mon Sep 17 00:00:00 2001 From: Itamar Yuran Date: Tue, 8 Oct 2024 13:37:13 +0300 Subject: [PATCH] this time --- cmd/lakectl/cmd/log.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/lakectl/cmd/log.go b/cmd/lakectl/cmd/log.go index 536d420e2e6..349a450e714 100644 --- a/cmd/lakectl/cmd/log.go +++ b/cmd/lakectl/cmd/log.go @@ -172,7 +172,10 @@ var logCmd = &cobra.Command{ // case --no-merges, filter commits and subtract that amount from amount desired if noMerges { data.Commits = filterMergeCommits(data.Commits) - data.Commits = data.Commits[:amount] + // case user asked for a specified amount + if amount > 0 { + data.Commits = data.Commits[:amount] + } } amount -= len(data.Commits)