This commit is contained in:
Unknown 2014-04-13 03:14:43 -04:00
parent 5c2da610a2
commit 9d983f27d6
7 changed files with 9 additions and 16 deletions

View file

@ -1,9 +1,9 @@
// +build sqlite
// Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// +build sqlite
package models
import (

View file

@ -39,12 +39,12 @@ func Update(refName, oldCommitId, newCommitId, userName, repoName string, userId
if isNew {
l, err = newCommit.CommitsBefore()
if err != nil {
qlog.Fatalf("Find CommitsBefore erro:", err)
qlog.Fatalf("Find CommitsBefore erro: %v", err)
}
} else {
l, err = newCommit.CommitsBeforeUntil(oldCommitId)
if err != nil {
qlog.Fatalf("Find CommitsBeforeUntil erro:", err)
qlog.Fatalf("Find CommitsBeforeUntil erro: %v", err)
return
}
}