Commit 56ac73c7 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Log sending blobs

parent 161d1243
......@@ -3,6 +3,7 @@ package git
import (
"../helper"
"encoding/base64"
"log"
"fmt"
"io"
"net/http"
......@@ -14,6 +15,7 @@ func SendGitBlob(w http.ResponseWriter, r *http.Request, repoPath string, blobId
helper.Fail500(w, fmt.Errorf("SendGitBlob: decode commit id + path: %v", err))
return
}
log.Printf("SendGitBlob: sending %q for %q", blobSpec, r.URL.Path)
gitShowCmd := gitCommand("", "git", "--git-dir="+repoPath, "show", string(blobSpec))
stdout, err := gitShowCmd.StdoutPipe()
......
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