Commit 27319b0e authored by Jacob Vosmaer's avatar Jacob Vosmaer

Remove useless variable

We forgot to remove this variable during a refactor.
parent b30cda22
...@@ -10,7 +10,6 @@ import ( ...@@ -10,7 +10,6 @@ import (
) )
func handleReceivePack(w *GitHttpResponseWriter, r *http.Request, a *api.Response) (writtenIn int64, err error) { func handleReceivePack(w *GitHttpResponseWriter, r *http.Request, a *api.Response) (writtenIn int64, err error) {
body := r.Body
action := getService(r) action := getService(r)
cmd, stdin, stdout, err := setupGitCommand(action, a) cmd, stdin, stdout, err := setupGitCommand(action, a)
...@@ -23,8 +22,7 @@ func handleReceivePack(w *GitHttpResponseWriter, r *http.Request, a *api.Respons ...@@ -23,8 +22,7 @@ func handleReceivePack(w *GitHttpResponseWriter, r *http.Request, a *api.Respons
defer stdin.Close() defer stdin.Close()
defer helper.CleanUpProcessGroup(cmd) // Ensure brute force subprocess clean-up 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, r.Body)
writtenIn, err = io.Copy(stdin, body)
if err != nil { if err != nil {
fail500(w) fail500(w)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment