summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/update.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/update.go b/models/update.go
index 0231b6af38..6702ad3b46 100644
--- a/models/update.go
+++ b/models/update.go
@@ -100,7 +100,7 @@ func Update(refName, oldCommitId, newCommitId, userName, repoUserName, repoName
repos.Id, repoUserName, repoName, refName, commit); err != nil {
log.GitLogger.Fatal("runUpdate.models.CommitRepoAction: %s/%s:%v", repoUserName, repoName, err)
}
- return
+ return err
}
// if commits push