add login name for auth type

This commit is contained in:
Lunny Xiao 2014-05-11 11:56:04 +08:00
parent 43ffacd05b
commit 4d6de6c7b9
5 changed files with 48 additions and 1 deletions

View file

@ -58,7 +58,7 @@ func CreateRelease(repoPath string, rel *Release, gitRepo *git.Repository) error
return ErrReleaseAlreadyExist
}
if !git.IsTagExist(repoPath, rel.TagName) {
if !gitRepo.IsTagExist(rel.TagName) {
_, stderr, err := com.ExecCmdDir(repoPath, "git", "tag", rel.TagName, "-m", rel.Title)
if err != nil {
return err

View file

@ -44,6 +44,7 @@ type User struct {
Passwd string `xorm:"not null"`
LoginType int
LoginSource int64 `xorm:"not null default 0"`
LoginName string
Type int
NumFollowers int
NumFollowings int