summaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/models/user.go b/models/user.go
index fa19e0c4b4..fd2e373eb1 100644
--- a/models/user.go
+++ b/models/user.go
@@ -25,9 +25,11 @@ import (
"github.com/go-xorm/xorm"
"github.com/nfnt/resize"
+ "github.com/gogits/git-shell"
+
"github.com/gogits/gogs/modules/avatar"
"github.com/gogits/gogs/modules/base"
- "github.com/gogits/gogs/modules/git"
+ oldgit "github.com/gogits/gogs/modules/git"
"github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/setting"
)
@@ -938,11 +940,11 @@ func MakeEmailPrimary(email *EmailAddress) error {
// UserCommit represents a commit with validation of user.
type UserCommit struct {
User *User
- *git.Commit
+ *oldgit.Commit
}
// ValidateCommitWithEmail chceck if author's e-mail of commit is corresponsind to a user.
-func ValidateCommitWithEmail(c *git.Commit) *User {
+func ValidateCommitWithEmail(c *oldgit.Commit) *User {
u, err := GetUserByEmail(c.Author.Email)
if err != nil {
return nil
@@ -959,7 +961,7 @@ func ValidateCommitsWithEmails(oldCommits *list.List) *list.List {
e = oldCommits.Front()
)
for e != nil {
- c := e.Value.(*git.Commit)
+ c := e.Value.(*oldgit.Commit)
if v, ok := emails[c.Author.Email]; !ok {
u, _ = GetUserByEmail(c.Author.Email)