From a3683ca5d6e64b74eb4b44d4cab2e7469f343529 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 29 Aug 2015 16:07:02 +0800 Subject: [PATCH] #1544 Creating new repository fails occasionally --- README.md | 11 ++--------- README_ZH.md | 11 ++--------- models/repo.go | 2 +- 3 files changed, 5 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index f7c31b78fc7..4ee0cc5f1e9 100644 --- a/README.md +++ b/README.md @@ -72,15 +72,8 @@ The goal of this project is to make the easiest, fastest, and most painless way ## Browser Support -According to [Semantic UI](https://github.com/Semantic-Org/Semantic-UI): - -- Last 2 Versions FF, Chrome, IE 10+, Safari Mac -- IE 10+ -- Android 4 - -Some components will work in IE 9, but the browser is not officially supported. - -The official support minimal size is **1024*768**, UI may still looks right in smaller size but no promises and fixes. +- Please see [Semantic UI](https://github.com/Semantic-Org/Semantic-UI#browser-support) for specific versions of supported browsers. +- The official support minimal size is **1024*768**, UI may still looks right in smaller size but no promises and fixes. ## Installation diff --git a/README_ZH.md b/README_ZH.md index a5241c556e4..94044864338 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -39,15 +39,8 @@ Gogs 的目标是打造一个最简单、最快速和最轻松的方式搭建自 ## 浏览器支持 -根据 [Semantic UI](https://github.com/Semantic-Org/Semantic-UI) 的要求: - -- 最新两版的 FF、Chrome、IE 10+ 和 Safari Mac -- IE 10+ -- Android 4 - -尽管一些组件可以在 IE 9 下使用,但该版本的浏览器被没有被正式支持。 - -官方支持的最小 UI 尺寸为 **1024*768**,UI 不一定会在更小尺寸的设备上被破坏,但我们无法保证且不会修复。 +- 请根据 [Semantic UI](https://github.com/Semantic-Org/Semantic-UI#browser-support) 查看具体支持的浏览器版本。 +- 官方支持的最小 UI 尺寸为 **1024*768**,UI 不一定会在更小尺寸的设备上被破坏,但我们无法保证且不会修复。 ## 安装部署 diff --git a/models/repo.go b/models/repo.go index 9934ec5ab07..3aa7b5e47b0 100644 --- a/models/repo.go +++ b/models/repo.go @@ -600,7 +600,7 @@ func initRepository(e Engine, repoPath string, u *User, repo *Repository, opts C return err } - tmpDir := filepath.Join(os.TempDir(), com.ToStr(time.Now().Nanosecond())) + tmpDir := filepath.Join(os.TempDir(), "gogs", repo.Name, com.ToStr(time.Now().Nanosecond())) // Initialize repository according to user's choice. if opts.AutoInit {