Skip to content

Commit

Permalink
this time
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamarYuran committed Oct 8, 2024
1 parent 35e0af6 commit 91df0b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/lakectl/cmd/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 91df0b1

Please sign in to comment.