Skip to content

Commit

Permalink
Merge pull request git-lfs#5874 from rusttech/main
Browse files Browse the repository at this point in the history
fix: fix slice init length
  • Loading branch information
chrisd8088 authored Oct 2, 2024
2 parents 65e3cea + 0fd3888 commit 8b2882b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/command_fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func fetchCommand(cmd *cobra.Command, args []string) {
}

if len(args) > 1 {
refShas := make([]string, len(refs))
refShas := make([]string, 0, len(refs))
for _, ref := range refs {
refShas = append(refShas, ref.Sha)
}
Expand Down

0 comments on commit 8b2882b

Please sign in to comment.