Handle windows deletion when start

Fix #2872
This commit is contained in:
Unknwon committed 2016-03-23 03:16:53 -04:00
1 parent 5e11341232
commit 98b58fa050
4 files changed
+4 -5

No files matched your search

+1 -2
View File
@@ -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.