summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2016-11-15 14:16:27 +0800
committerBo-Yi Wu <appleboy.tw@gmail.com>2016-11-15 14:16:27 +0800
commitd9ffe999723366de4bca616f06c7e5944a768044 (patch)
treef9de6de4456c04bccf072ee1084be015983e7480 /models
parent07a0753420f1e97450bb22427abaaf78dc20d31d (diff)
downloadgitea-d9ffe999723366de4bca616f06c7e5944a768044.tar.gz
gitea-d9ffe999723366de4bca616f06c7e5944a768044.zip
fix variable assigned and not used.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Diffstat (limited to 'models')
-rw-r--r--models/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go
index 844fca9a3a..20671cb019 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -2099,7 +2099,7 @@ func ForkRepository(u *User, oldRepo *Repository, name, desc string) (_ *Reposit
repoPath, fmt.Sprintf("ForkRepository(git update-server-info): %s", repoPath),
"git", "update-server-info")
if err != nil {
- return nil, fmt.Errorf("git update-server-info: %v", err)
+ return nil, fmt.Errorf("git update-server-info: %v", stderr)
}
if err = createUpdateHook(repoPath); err != nil {