summaryrefslogtreecommitdiffstats
path: root/routers/web/repo/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/repo/http.go')
-rw-r--r--routers/web/repo/http.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/routers/web/repo/http.go b/routers/web/repo/http.go
index 6078d764b6..fbd1e19a82 100644
--- a/routers/web/repo/http.go
+++ b/routers/web/repo/http.go
@@ -10,7 +10,6 @@ import (
"compress/gzip"
gocontext "context"
"fmt"
- "io/ioutil"
"net/http"
"os"
"os/exec"
@@ -308,7 +307,7 @@ var (
func dummyInfoRefs(ctx *context.Context) {
infoRefsOnce.Do(func() {
- tmpDir, err := ioutil.TempDir(os.TempDir(), "gitea-info-refs-cache")
+ tmpDir, err := os.MkdirTemp(os.TempDir(), "gitea-info-refs-cache")
if err != nil {
log.Error("Failed to create temp dir for git-receive-pack cache: %v", err)
return