diff options
author | Unknwon <u@gogs.io> | 2016-03-23 03:16:53 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-03-23 03:16:53 -0400 |
commit | 98b58fa050e778a49cf1017cc806053bb5b70da6 (patch) | |
tree | e93a3716d16ada5e4bb9e42b33c55b5c8981972e | |
parent | 5e11341232b137a4c257bae1fda4a81e2210d254 (diff) | |
download | gitea-98b58fa050e778a49cf1017cc806053bb5b70da6.tar.gz gitea-98b58fa050e778a49cf1017cc806053bb5b70da6.zip |
Handle windows deletion when start
Fix #2872
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | gogs.go | 2 | ||||
-rw-r--r-- | models/repo.go | 3 | ||||
-rw-r--r-- | templates/.VERSION | 2 |
4 files changed, 4 insertions, 5 deletions
@@ -3,7 +3,7 @@ Gogs - Go Git Service [![Build Status](https://travis-ci.org/gogits/gogs.svg?bra ![](https://github.com/gogits/gogs/blob/master/public/img/gogs-large-resize.png?raw=true) -##### Current version: 0.9.14 +##### Current version: 0.9.15 | Web | UI | Preview | |:-------------:|:-------:|:-------:| @@ -17,7 +17,7 @@ import ( "github.com/gogits/gogs/modules/setting" ) -const APP_VER = "0.9.14.0321" +const APP_VER = "0.9.15.0323" func init() { runtime.GOMAXPROCS(runtime.NumCPU()) 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. diff --git a/templates/.VERSION b/templates/.VERSION index 10cd7f56e8..f179a94d36 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.9.14.0321
\ No newline at end of file +0.9.15.0323
\ No newline at end of file |