From f83519b4528da69df41bbac3574e42903963a075 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 28 Jul 2015 21:24:24 +0800 Subject: [PATCH] report error when migration auth failed --- README.md | 1 + README_ZH.md | 1 + models/repo.go | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bd35072a9..29e7d3788 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,7 @@ There are 5 ways to install Gogs: ## Contributors - The [core team](http://gogs.io/team) of this project. +- Ex-team members [@lunny](https://github.com/lunny) and [@fuxiaohei](https://github.com/fuxiaohei). - See [contributors page](https://github.com/gogits/gogs/graphs/contributors) for full list of contributors. - See [TRANSLATORS](conf/locale/TRANSLATORS) for full list of translators. diff --git a/README_ZH.md b/README_ZH.md index 4ee6f4805..4715f2ffd 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -80,6 +80,7 @@ Gogs 的目标是打造一个最简单、最快速和最轻松的方式搭建自 ## 贡献成员 - 本项目的 [开发团队](http://gogs.io/team)。 +- 前团队成员 [@lunny](https://github.com/lunny) 和 [@fuxiaohei](https://github.com/fuxiaohei)。 - 您可以通过查看 [贡献者页面](https://github.com/gogits/gogs/graphs/contributors) 获取完整的贡献者列表。 - 您可以通过查看 [TRANSLATORS](conf/locale/TRANSLATORS) 文件获取完整的翻译人员列表。 diff --git a/models/repo.go b/models/repo.go index f339f1737..55accfaf4 100644 --- a/models/repo.go +++ b/models/repo.go @@ -373,9 +373,9 @@ func MigrateRepository(u *User, name, desc string, private, mirror bool, url str // FIXME: this command could for both migrate and mirror _, stderr, err := process.ExecTimeout(10*time.Minute, fmt.Sprintf("MigrateRepository: %s", repoPath), - "git", "clone", "--mirror", "--bare", url, repoPath) + "git", "clone", "--mirror", "--bare", "--quiet", url, repoPath) if err != nil { - return repo, fmt.Errorf("git clone --mirror --bare: %v", stderr) + return repo, fmt.Errorf("git clone --mirror --bare --quiet: %v", stderr) } else if err = createUpdateHook(repoPath); err != nil { return repo, fmt.Errorf("create update hook: %v", err) }