diff options
author | Unknwon <u@gogs.io> | 2015-07-28 21:24:24 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-07-28 21:24:24 +0800 |
commit | f83519b4528da69df41bbac3574e42903963a075 (patch) | |
tree | 501b52ff1a26b04e586a582f89507245aeaa51f8 /models/repo.go | |
parent | ba47306a6987cf5357a08d55e5cab75a87d2b025 (diff) | |
download | gitea-f83519b4528da69df41bbac3574e42903963a075.tar.gz gitea-f83519b4528da69df41bbac3574e42903963a075.zip |
report error when migration auth failed
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/repo.go b/models/repo.go index f339f1737a..55accfaf40 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) } |