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

Log sending blobs

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