mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
add login name for auth type
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user