diff options
Diffstat (limited to 'remote.go')
-rw-r--r-- | remote.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -76,6 +76,8 @@ func (r *Remote) Push(o *PushOptions) (err error) { return err } + defer ioutil.CheckClose(s, &err) + ar, err := s.AdvertisedReferences() if err != nil { return err @@ -420,7 +422,7 @@ func isFastForward(s storer.EncodedObjectStorer, old, new plumbing.Hash) (bool, } found := false - iter := object.NewCommitPreIterator(c) + iter := object.NewCommitPreorderIter(c) return found, iter.ForEach(func(c *object.Commit) error { if c.Hash != old { return nil |