diff options
Diffstat (limited to 'routers/repo/http.go')
-rw-r--r-- | routers/repo/http.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/repo/http.go b/routers/repo/http.go index 565ee5eff4..bc3b81f511 100644 --- a/routers/repo/http.go +++ b/routers/repo/http.go @@ -31,6 +31,7 @@ import ( "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/structs" "code.gitea.io/gitea/modules/timeutil" + "code.gitea.io/gitea/modules/util" repo_service "code.gitea.io/gitea/services/repository" ) @@ -391,7 +392,7 @@ func dummyInfoRefs(ctx *context.Context) { } defer func() { - if err := os.RemoveAll(tmpDir); err != nil { + if err := util.RemoveAll(tmpDir); err != nil { log.Error("RemoveAll: %v", err) } }() |