Lunny Xiao 10 years ago
parent
commit
54e17c7cca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/update.go

+ 1 - 1
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