Skip to content
Snippets Groups Projects
Commit 27319b0e authored by Jacob Vosmaer (GitLab)'s avatar Jacob Vosmaer (GitLab)
Browse files

Remove useless variable

We forgot to remove this variable during a refactor.
parent b30cda22
No related branches found
No related tags found
1 merge request!117Remove useless variable
Pipeline #
Loading
Loading
@@ -10,7 +10,6 @@ import (
)
 
func handleReceivePack(w *GitHttpResponseWriter, r *http.Request, a *api.Response) (writtenIn int64, err error) {
body := r.Body
action := getService(r)
cmd, stdin, stdout, err := setupGitCommand(action, a)
 
Loading
Loading
@@ -23,8 +22,7 @@ func handleReceivePack(w *GitHttpResponseWriter, r *http.Request, a *api.Respons
defer stdin.Close()
defer helper.CleanUpProcessGroup(cmd) // Ensure brute force subprocess clean-up
 
// Write the client request body to Git's standard input
writtenIn, err = io.Copy(stdin, body)
writtenIn, err = io.Copy(stdin, r.Body)
 
if err != nil {
fail500(w)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment