diff options
author | Unknwon <u@gogs.io> | 2016-07-24 01:08:22 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-07-24 01:08:22 +0800 |
commit | 1f2e173a745da8e4b57f96b5561a3c10054d3b76 (patch) | |
tree | 367f0f07e4fe1269ac0772e0561a4bf912b5153c /models/update.go | |
parent | 46e96c008cf966428c9dad71c7871de88186e3fe (diff) | |
download | gitea-1f2e173a745da8e4b57f96b5561a3c10054d3b76.tar.gz gitea-1f2e173a745da8e4b57f96b5561a3c10054d3b76.zip |
Refactor User.Id to User.ID
Diffstat (limited to 'models/update.go')
-rw-r--r-- | models/update.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/models/update.go b/models/update.go index 66775ea9fb..14e5b28cf2 100644 --- a/models/update.go +++ b/models/update.go @@ -108,7 +108,7 @@ func PushUpdate(opts PushUpdateOptions) (err error) { return fmt.Errorf("GetUserByName: %v", err) } - repo, err := GetRepositoryByName(repoUser.Id, opts.RepoName) + repo, err := GetRepositoryByName(repoUser.ID, opts.RepoName) if err != nil { return fmt.Errorf("GetRepositoryByName: %v", err) } @@ -133,7 +133,7 @@ func PushUpdate(opts PushUpdateOptions) (err error) { } commit := &PushCommits{} - if err = CommitRepoAction(opts.PusherID, repoUser.Id, opts.PusherName, actEmail, + if err = CommitRepoAction(opts.PusherID, repoUser.ID, opts.PusherName, actEmail, repo.ID, opts.RepoUserName, opts.RepoName, opts.RefName, commit, opts.OldCommitID, opts.NewCommitID); err != nil { return fmt.Errorf("CommitRepoAction (tag): %v", err) } @@ -159,7 +159,7 @@ func PushUpdate(opts PushUpdateOptions) (err error) { } } - if err = CommitRepoAction(opts.PusherID, repoUser.Id, opts.PusherName, repoUser.Email, + if err = CommitRepoAction(opts.PusherID, repoUser.ID, opts.PusherName, repoUser.Email, repo.ID, opts.RepoUserName, opts.RepoName, opts.RefName, ListToPushCommits(l), opts.OldCommitID, opts.NewCommitID); err != nil { return fmt.Errorf("CommitRepoAction (branch): %v", err) |