diff options
author | Santiago M. Mola <santi@mola.io> | 2017-06-09 12:13:53 +0200 |
---|---|---|
committer | Santiago M. Mola <santi@mola.io> | 2017-06-13 14:57:36 +0200 |
commit | 7908196d194b4536b60ccf13914f5722ab97cda4 (patch) | |
tree | 86a1f83f0ef8f786653f6cb912079ff65363166a /remote.go | |
parent | 2a00316b65585be2bf68e1ea9c0e42c6af4f5679 (diff) | |
download | go-git-7908196d194b4536b60ccf13914f5722ab97cda4.tar.gz |
ensure receive-pack session is closed on push.
* at low level, ReceivePack must close its stream to the
server to signal it has finished.
* remote.go: Close() must be called on session.
Diffstat (limited to 'remote.go')
-rw-r--r-- | remote.go | 2 |
1 files changed, 2 insertions, 0 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 |