aboutsummaryrefslogtreecommitdiffstats
path: root/remote.go
diff options
context:
space:
mode:
authorSantiago M. Mola <santi@mola.io>2017-06-13 16:01:06 +0200
committerGitHub <noreply@github.com>2017-06-13 16:01:06 +0200
commitbeab77aaed6ac84cbf97704f5507eae40350fefa (patch)
tree25905da2442b2363d0d45bba07485543e5665deb /remote.go
parent2a00316b65585be2bf68e1ea9c0e42c6af4f5679 (diff)
parentcbbd2a9ad8ee990c79bd847b0df2823e2449ea4e (diff)
downloadgo-git-beab77aaed6ac84cbf97704f5507eae40350fefa.tar.gz
Merge pull request #418 from smola/ssh-issue-310
fix push on git and ssh
Diffstat (limited to 'remote.go')
-rw-r--r--remote.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/remote.go b/remote.go
index 592f7b6..bcc844c 100644
--- a/remote.go
+++ b/remote.go
@@ -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