]> source.dussan.org Git - gitea.git/commitdiff
Mirror fix and fix #481
authorUnknwon <joe2010xtmf@163.com>
Wed, 17 Sep 2014 18:22:51 +0000 (14:22 -0400)
committerUnknwon <joe2010xtmf@163.com>
Wed, 17 Sep 2014 18:22:51 +0000 (14:22 -0400)
README.md
README_ZH.md
conf/app.ini
gogs.go
models/repo.go
modules/base/template.go
modules/setting/setting.go
templates/.VERSION

index 43d75c264bd33c42b74f63916f4ce92b3c216683..08eed1348fef7d6d617550d7ee4595465ec2b3ec 100644 (file)
--- a/README.md
+++ b/README.md
@@ -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
 
index bf6c1d03a1578e9bc4f6c9431ca34648dc1f7284..4f59e0018708d4b1fa67e830b7177481ce2c9da6 100644 (file)
@@ -35,7 +35,7 @@ Gogs 的目标是打造一个最简单、最快速和最轻松的方式搭建自
 - Slack Web 钩子集成
 - 支持 MySQL、PostgreSQL 以及 SQLite3 数据库
 - 社交帐号登录(GitHub、Google、QQ、微博)
-- 多语言支持(英文、简体中文、德语等等)
+- 多语言支持(英文、简体中文、德语、法语等等)
 
 ## 系统要求
 
index 099e80525e5b1e597d366b5ea33c60759ff59623..ba73a0e8b26f13c8c2ea64de88b5d1039bd4468a 100644 (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
\ No newline at end of file
+NAMES = English,简体中文,Deutsch,Français
\ No newline at end of file
diff --git a/gogs.go b/gogs.go
index 8ae7449e2b99777fa52d33c56c6f6fd27e778d8d..c5249b25126e5c767cb39a222172c670397cc270 100644 (file)
--- a/gogs.go
+++ b/gogs.go
@@ -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())
index 2e16270431afb96e0c549edc7a338d0cc7d38885..ccfaae2ca22bd6f3115df39f26033825498ff5f8 100644 (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 {
index 6419572912a657a7fab60d8f1b6302de64f3a31f..338fe677bc3730790018a675e8d1fb3b295d2283 100644 (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"
 )
index c56ad2421aae2cde20ac0919565f8689332b6da5..5fb1d52d0beed702318715979ab84c1d66921f60 100644 (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", ",")
index aada89d11a0b30bb18a82280df82cbc1546dbc73..29de2fdfe1f4dafc1c6fb279a7127a94fc048bd5 100644 (file)
@@ -1 +1 @@
-0.5.2.0916 Beta
\ No newline at end of file
+0.5.2.0917 Beta
\ No newline at end of file