diff --git a/commands/command_fetch.go b/commands/command_fetch.go index 3ab64160ba..4bbafc6c15 100644 --- a/commands/command_fetch.go +++ b/commands/command_fetch.go @@ -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) }