Skip to content

Commit f079b60

Browse files
committed
Fix temp dir name
1 parent cb81214 commit f079b60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/repository/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func prepareRepoCommit(ctx context.Context, repo *repo_model.Repository, tmpDir,
135135
}
136136

137137
func createRepoTempDir(repoName string) (string, error) {
138-
return os.MkdirTemp(filepath.Join(setting.TempDir(), "repos"), "gitea-"+repoName)
138+
return os.MkdirTemp(setting.TempDir(), "repos-"+repoName)
139139
}
140140

141141
// InitRepository initializes README and .gitignore if needed.

0 commit comments

Comments
 (0)