summaryrefslogtreecommitdiffstats
path: root/models/action.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-09-25 16:36:19 -0400
committerUnknwon <joe2010xtmf@163.com>2014-09-25 16:36:19 -0400
commitf69761563b7a4fe9ace2a1643391cbcf9b92b372 (patch)
tree23d5bf522788895c4659c55f1e8275d9b9ab9e0b /models/action.go
parent57d48fb6a2fb34f5da1aa702c33bc9c268e29f71 (diff)
downloadgitea-f69761563b7a4fe9ace2a1643391cbcf9b92b372.tar.gz
gitea-f69761563b7a4fe9ace2a1643391cbcf9b92b372.zip
Fix bug on transfer repo
Diffstat (limited to 'models/action.go')
-rw-r--r--models/action.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/action.go b/models/action.go
index 18c956bda1..46500a9260 100644
--- a/models/action.go
+++ b/models/action.go
@@ -351,8 +351,8 @@ func NewRepoAction(u *User, repo *Repository) (err error) {
// TransferRepoAction adds new action for transfering repository.
func TransferRepoAction(u, newUser *User, repo *Repository) (err error) {
if err = NotifyWatchers(&Action{ActUserId: u.Id, ActUserName: u.Name, ActEmail: u.Email,
- OpType: TRANSFER_REPO, RepoId: repo.Id, RepoUserName: repo.Owner.Name,
- RepoName: repo.Name, Content: newUser.Name,
+ OpType: TRANSFER_REPO, RepoId: repo.Id, RepoUserName: newUser.Name,
+ RepoName: repo.Name,
IsPrivate: repo.IsPrivate}); err != nil {
log.Error(4, "NotifyWatchers: %d/%s", u.Id, repo.Name)
return err