diff options
author | Antonio Jesus Navarro Perez <antnavper@gmail.com> | 2017-07-04 11:16:54 +0200 |
---|---|---|
committer | Antonio Jesus Navarro Perez <antnavper@gmail.com> | 2017-07-04 11:17:34 +0200 |
commit | 10bf320dce4b2a80394b24db19fad89e1da953f7 (patch) | |
tree | b7a06e810b6a4acb47b27bdd39b0ded51c89031e /plumbing/transport/http/receive_pack.go | |
parent | 97aa370451441a553b4b04f5fa3bdb8a42fead26 (diff) | |
download | go-git-10bf320dce4b2a80394b24db19fad89e1da953f7.tar.gz |
fix auth error issue
Diffstat (limited to 'plumbing/transport/http/receive_pack.go')
-rw-r--r-- | plumbing/transport/http/receive_pack.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plumbing/transport/http/receive_pack.go b/plumbing/transport/http/receive_pack.go index f867f97..b8489a7 100644 --- a/plumbing/transport/http/receive_pack.go +++ b/plumbing/transport/http/receive_pack.go @@ -43,6 +43,10 @@ func (s *rpSession) ReceivePack(req *packp.ReferenceUpdateRequest) ( } r, err := ioutil.NonEmptyReader(res.Body) + if err == ioutil.ErrEmptyReader { + return nil, nil + } + if err != nil { return nil, err } |