瀏覽代碼

#2798 fix assign operation not take effect

Unknwon 8 年之前
父節點
當前提交
194a742fb9
共有 4 個文件被更改,包括 5 次插入5 次删除
  1. 1 1
      README.md
  2. 1 1
      gogs.go
  3. 2 2
      modules/log/log.go
  4. 1 1
      templates/.VERSION

+ 1 - 1
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 tip version: 0.9.42 (see [Releases](https://github.com/gogits/gogs/releases) for binary versions)
+##### Current tip version: 0.9.43 (see [Releases](https://github.com/gogits/gogs/releases) for binary versions)
 
 | Web | UI  | Preview  |
 |:-------------:|:-------:|:-------:|

+ 1 - 1
gogs.go

@@ -17,7 +17,7 @@ import (
 	"github.com/gogits/gogs/modules/setting"
 )
 
-const APP_VER = "0.9.42.0712"
+const APP_VER = "0.9.43.0715"
 
 func init() {
 	runtime.GOMAXPROCS(runtime.NumCPU())

+ 2 - 2
modules/log/log.go

@@ -23,10 +23,10 @@ func NewLogger(bufLen int64, mode, config string) {
 	logger := newLogger(bufLen)
 
 	isExist := false
-	for _, l := range loggers {
+	for i, l := range loggers {
 		if l.adapter == mode {
 			isExist = true
-			l = logger
+			loggers[i] = logger
 		}
 	}
 	if !isExist {

+ 1 - 1
templates/.VERSION

@@ -1 +1 @@
-0.9.42.0712
+0.9.43.0715