aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--remote.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote.go b/remote.go
index bc370e6..3c617c7 100644
--- a/remote.go
+++ b/remote.go
@@ -1044,7 +1044,7 @@ func (r *Remote) List(o *ListOptions) (rfs []*plumbing.Reference, err error) {
}
func objectsToPush(commands []*packp.Command) []plumbing.Hash {
- objects := make([]plumbing.Hash, len(commands))
+ objects := make([]plumbing.Hash, 0, len(commands))
for _, cmd := range commands {
if cmd.New == plumbing.ZeroHash {
continue