diff options
author | Unknwon <u@gogs.io> | 2015-11-27 00:24:24 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-27 00:24:24 -0500 |
commit | 392f3ee21016476fb9794f78882d6c447acb8449 (patch) | |
tree | d2ff57d2ddbe77760021ea57dafc70004ec95269 /models/user.go | |
parent | c50a3503e6e8ece0dabd109932a72fe093c3cab3 (diff) | |
download | gitea-392f3ee21016476fb9794f78882d6c447acb8449.tar.gz gitea-392f3ee21016476fb9794f78882d6c447acb8449.zip |
wiki: finish new
Diffstat (limited to 'models/user.go')
-rw-r--r-- | models/user.go | 10 |
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) |