aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-03-23 03:16:53 -0400
committerUnknwon <u@gogs.io>2016-03-23 03:16:53 -0400
commit98b58fa050e778a49cf1017cc806053bb5b70da6 (patch)
treee93a3716d16ada5e4bb9e42b33c55b5c8981972e /models
parent5e11341232b137a4c257bae1fda4a81e2210d254 (diff)
downloadgitea-98b58fa050e778a49cf1017cc806053bb5b70da6.tar.gz
gitea-98b58fa050e778a49cf1017cc806053bb5b70da6.zip
Handle windows deletion when start
Fix #2872
Diffstat (limited to 'models')
-rw-r--r--models/repo.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/models/repo.go b/models/repo.go
index 2f8019feed..91dd9acf3e 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -129,8 +129,7 @@ func NewRepoContext() {
log.Fatal(4, "Fail to execute 'git config --global core.quotepath false': %s", stderr)
}
- // Clean up temporary data.
- os.RemoveAll(filepath.Join(setting.AppDataPath, "tmp"))
+ RemoveAllWithNotice("Clean up repository temporary data", filepath.Join(setting.AppDataPath, "tmp"))
}
// Repository represents a git repository.