Skip to content

Commit 27e5b4c

Browse files
Remove reading .git directory
1 parent f15ca60 commit 27e5b4c

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

main.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"io/ioutil"
77
"net/http"
88
"os"
9-
"strings"
109
"sync"
1110
"time"
1211

@@ -54,14 +53,6 @@ func init() {
5453
if err != nil {
5554
panic(err)
5655
}
57-
58-
commit, err := ioutil.ReadFile(".git/refs/heads/master")
59-
60-
if err != nil {
61-
panic(err)
62-
}
63-
64-
getLogger.AddField("git", strings.TrimSpace(string(commit)))
6556
}
6657

6758
func CORS(next http.Handler) http.Handler {

0 commit comments

Comments
 (0)