Browse Source

Mirror fix and fix #481

tags/v1.2.0-rc1
Unknwon 11 years ago
parent
commit
8a09256941
8 changed files with 17 additions and 15 deletions
  1. +1
    -1
      README.md
  2. +1
    -1
      README_ZH.md
  3. +4
    -4
      conf/app.ini
  4. +1
    -1
      gogs.go
  5. +1
    -1
      models/repo.go
  6. +1
    -1
      modules/base/template.go
  7. +7
    -5
      modules/setting/setting.go
  8. +1
    -1
      templates/.VERSION

+ 1
- 1
README.md View File

@@ -44,7 +44,7 @@ The goal of this project is to make the easiest, fastest and most painless way t
- Slack webhook integration
- Supports MySQL, PostgreSQL and SQLite3
- Social account login(GitHub, Google, QQ, Weibo)
- Multi-language support(English, Chinese, Germany etc.)
- Multi-language support(English, Chinese, Germany, French etc.)

## System Requirements



+ 1
- 1
README_ZH.md View File

@@ -35,7 +35,7 @@ Gogs 的目标是打造一个最简单、最快速和最轻松的方式搭建自
- Slack Web 钩子集成
- 支持 MySQL、PostgreSQL 以及 SQLite3 数据库
- 社交帐号登录(GitHub、Google、QQ、微博)
- 多语言支持(英文、简体中文、德语等等)
- 多语言支持(英文、简体中文、德语、法语等等)

## 系统要求



+ 4
- 4
conf/app.ini View File

@@ -252,9 +252,9 @@ DRIVER =
; Based on xorm, e.g.: root:root@localhost/gogs?charset=utf8
CONN =

[git]
MAX_GITDIFF_LINES = 10000

[i18n]
LANGS = en-US,zh-CN,de-DE,fr-CA
NAMES = English,简体中文,Deutsch,Français

[git]
MAX_GITDIFF_LINES = 10000
NAMES = English,简体中文,Deutsch,Français

+ 1
- 1
gogs.go View File

@@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting"
)

const APP_VER = "0.5.2.0916 Beta"
const APP_VER = "0.5.2.0917 Beta"

func init() {
runtime.GOMAXPROCS(runtime.NumCPU())


+ 1
- 1
models/repo.go View File

@@ -656,7 +656,7 @@ func TransferOwnership(u *User, newOwner string, repo *Repository) error {
}

// Check if new owner has repository with same name.
has, err := IsRepositoryExist(u, repo.Name)
has, err := IsRepositoryExist(newUser, repo.Name)
if err != nil {
return err
} else if has {


+ 1
- 1
modules/base/template.go View File

@@ -14,8 +14,8 @@ import (
"runtime"
"strings"
"time"
"code.google.com/p/mahonia"

"github.com/gogits/gogs/modules/mahonia"
"github.com/gogits/gogs/modules/setting"
"github.com/saintfish/chardet"
)


+ 7
- 5
modules/setting/setting.go View File

@@ -65,7 +65,6 @@ var (
// Picture settings.
PictureService string
DisableGravatar bool
MaxGitDiffLines int

// Log settings.
LogRootPath string
@@ -94,6 +93,12 @@ var (
SessionProvider string
SessionConfig *session.Config

// Git settings.
MaxGitDiffLines int

// I18n settings.
Langs, Names []string

// Global setting objects.
Cfg *goconfig.ConfigFile
ConfRootPath string
@@ -101,9 +106,6 @@ var (
ProdMode bool
RunUser string
IsWindows bool

// I18n settings.
Langs, Names []string
)

func init() {
@@ -245,7 +247,7 @@ func NewConfigContext() {
[]string{"server"})
DisableGravatar = Cfg.MustBool("picture", "DISABLE_GRAVATAR")

MaxGitDiffLines = Cfg.MustInt("git", "MAX_GITDIFF_LINES", 5000)
MaxGitDiffLines = Cfg.MustInt("git", "MAX_GITDIFF_LINES", 10000)

Langs = Cfg.MustValueArray("i18n", "LANGS", ",")
Names = Cfg.MustValueArray("i18n", "NAMES", ",")


+ 1
- 1
templates/.VERSION View File

@@ -1 +1 @@
0.5.2.0916 Beta
0.5.2.0917 Beta

Loading…
Cancel
Save