]> source.dussan.org Git - gitea.git/commitdiff
fix #2205
authorUnknwon <u@gogs.io>
Wed, 16 Dec 2015 02:32:17 +0000 (21:32 -0500)
committerUnknwon <u@gogs.io>
Wed, 16 Dec 2015 02:32:17 +0000 (21:32 -0500)
README.md
conf/locale/TRANSLATORS
gogs.go
models/repo.go
templates/.VERSION

index ae279c94522e2e124df3317508d778fe4a3e7e96..eb6b2d796eaab230a641fd594627388711779590 100644 (file)
--- a/README.md
+++ b/README.md
@@ -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.8.5
+##### Current version: 0.8.6
 
 | Web | UI  | Preview  |
 |:-------------:|:-------:|:-------:|
index 4ac4180e9008bde6e780122eb8d707d1b4cfe3d5..2d3a2549514a48a338eeed100dab90b0f9af2eed 100644 (file)
@@ -2,6 +2,7 @@
 # Entries are in alphabetical order.
 
 Akihiro YAGASAKI <yaggytter AT momiage DOT com>
+Aleksejs Grocevs <aleksejs AT grocevs DOT pro>
 Alexander Steinhöfer <kontakt AT lx-s DOT de>
 Alexandre Magno <alexandre DOT mbm AT gmail DOT com>
 Andrey Nering <andrey AT nering DOT com DOT br>
@@ -10,7 +11,9 @@ Barış Arda Yılmaz <ardayilmazgamer AT gmail DOT com>
 Christoph Kisfeld <christoph DOT kisfeld AT gmail DOT com>
 Cysioland
 Daniel Speichert <daniel AT speichert DOT pl>
+David Yzaguirre <dvdyzag AT gmail DOT com>
 Dmitriy Nogay <me AT catwhocode DOT ga>
+Ezequiel Gonzalez Rial <gonrial AT gmail DOT com>
 Gregor Santner <gdev AT live DOT de>
 Hamid Feizabadi <hamidfzm AT gmail DOT com>
 Huimin Wang <wanghm2009 AT hotmail DOT co DOT jp>
diff --git a/gogs.go b/gogs.go
index 85255299da94cf36b9898173a741925ce64f5d96..03a98f0911adb860fb4521b6171b7dfd442b9b46 100644 (file)
--- a/gogs.go
+++ b/gogs.go
@@ -18,7 +18,7 @@ import (
        "github.com/gogits/gogs/modules/setting"
 )
 
-const APP_VER = "0.8.5.1214"
+const APP_VER = "0.8.6.1215"
 
 func init() {
        runtime.GOMAXPROCS(runtime.NumCPU())
index 82e3463377ae58b370fb137372d02ca6d3378333..976dcabf5988d73ad084329ab9814aac8ac683f2 100644 (file)
@@ -129,6 +129,8 @@ 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"))
 }
 
 // Repository represents a git repository.
@@ -1301,12 +1303,14 @@ func DeleteRepository(uid, repoID int64) error {
                }
        }
 
-       wikiPath := repo.WikiPath()
-       if err = os.RemoveAll(wikiPath); err != nil {
-               desc := fmt.Sprintf("delete repository wiki [%s]: %v", wikiPath, err)
-               log.Warn(desc)
-               if err = CreateRepositoryNotice(desc); err != nil {
-                       log.Error(4, "CreateRepositoryNotice: %v", err)
+       wikiPaths := []string{repo.WikiPath(), repo.LocalWikiPath()}
+       for _, wikiPath := range wikiPaths {
+               if err = os.RemoveAll(wikiPath); err != nil {
+                       desc := fmt.Sprintf("delete repository wiki [%s]: %v", wikiPath, err)
+                       log.Warn(desc)
+                       if err = CreateRepositoryNotice(desc); err != nil {
+                               log.Error(4, "CreateRepositoryNotice: %v", err)
+                       }
                }
        }
 
index 51625d877ca0db18f04e0373005cc8dbc57ce811..5bd084a800a2255b74615cbe4f03db7287c6eb5a 100644 (file)
@@ -1 +1 @@
-0.8.5.1214
\ No newline at end of file
+0.8.6.1215
\ No newline at end of file