diff options
Diffstat (limited to 'cmd/git-lfs-authenticate')
-rw-r--r-- | cmd/git-lfs-authenticate/main.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/git-lfs-authenticate/main.go b/cmd/git-lfs-authenticate/main.go index 05de4c6..f48fe5c 100644 --- a/cmd/git-lfs-authenticate/main.go +++ b/cmd/git-lfs-authenticate/main.go | |||
@@ -37,7 +37,8 @@ func (l *logger) writer() io.WriteCloser { | |||
37 | l.m.Lock() | 37 | l.m.Lock() |
38 | if l.wc.Load() == nil { | 38 | if l.wc.Load() == nil { |
39 | os.MkdirAll(".gitolfs3/logs/", 0o700) // Mode: drwx------ | 39 | os.MkdirAll(".gitolfs3/logs/", 0o700) // Mode: drwx------ |
40 | path := fmt.Sprintf(".gitolfs3/logs/gitolfs3-%s-%s.log", l.time, l.reqID) | 40 | ts := l.time.Format("2006-01-02") |
41 | path := fmt.Sprintf(".gitolfs3/logs/gitolfs3-%s-%s.log", ts, l.reqID) | ||
41 | var err error | 42 | var err error |
42 | if w, err = os.Create(path); err == nil { | 43 | if w, err = os.Create(path); err == nil { |
43 | l.wc.Store(w) | 44 | l.wc.Store(w) |