Skip to content

Commit

Permalink
fix shallow clone
Browse files Browse the repository at this point in the history
  • Loading branch information
faceair committed May 9, 2019
1 parent 769dc78 commit 5975cd0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ func (g *Server) Do(req *http.Request) (*http.Response, error) {
return nil, err
}

err = stdin.Close()
if err != nil {
return nil, err
}

header.Set("Content-Type", "application/x-git-upload-pack-result")
return betproxy.NewResponse(http.StatusOK, header, NewStdoutReader(stdout, cmd), req), nil
}
Expand Down

0 comments on commit 5975cd0

Please sign in to comment.