1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00

Fix temp dir name

This commit is contained in:
Lunny Xiao 2024-10-27 18:06:21 -07:00
parent cb812144b5
commit f079b601c8
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -135,7 +135,7 @@ func prepareRepoCommit(ctx context.Context, repo *repo_model.Repository, tmpDir,
}
func createRepoTempDir(repoName string) (string, error) {
return os.MkdirTemp(filepath.Join(setting.TempDir(), "repos"), "gitea-"+repoName)
return os.MkdirTemp(setting.TempDir(), "repos-"+repoName)
}
// InitRepository initializes README and .gitignore if needed.