diff options
author | Unknwon <u@gogs.io> | 2015-11-30 20:46:19 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-30 20:46:19 -0500 |
commit | dcb391d3415a84ec893d11b788f776ea89c301c3 (patch) | |
tree | d83263075dbbe416cc79691fd87cc1255226ddf5 /models/user.go | |
parent | 5a14c3cf9854b2762a82ef6bdd781810380ab666 (diff) | |
parent | 830d00066785d131413d1de11ce301bf1f0b818a (diff) |
Merge branch 'feature/wiki' into develop
Diffstat (limited to 'models/user.go')
-rw-r--r-- | models/user.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/models/user.go b/models/user.go index fa19e0c4..885111ad 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" ) @@ -664,7 +666,7 @@ func deleteUser(e *xorm.Session, u *User) error { &IssueUser{UID: u.Id}, &EmailAddress{UID: u.Id}, ); err != nil { - return fmt.Errorf("deleteUser: %v", err) + return fmt.Errorf("deleteBeans: %v", err) } // ***** START: PublicKey ***** @@ -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) |