diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-11 23:52:08 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-11 23:52:08 -0400 |
commit | d305448fa802a91ba81af1b78294f1658bcf834c (patch) | |
tree | 7bd274eb5c14c9d45c964e652b4c35d66de2cec9 /models | |
parent | 3df8b2bef0f95f873e955840c6b12c3fe3dc9f8a (diff) | |
download | gitea-d305448fa802a91ba81af1b78294f1658bcf834c.tar.gz gitea-d305448fa802a91ba81af1b78294f1658bcf834c.zip |
Mirror bug fix
Diffstat (limited to 'models')
-rw-r--r-- | models/repo.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/models/repo.go b/models/repo.go index ce8665cc63..d01a716b50 100644 --- a/models/repo.go +++ b/models/repo.go @@ -192,8 +192,10 @@ func CreateRepository(user *User, repoName, desc, repoLang, license string, priv return nil, err } - if err = NewRepoAction(user, repo); err != nil { - log.Error("repo.CreateRepository(NewRepoAction): %v", err) + if !repo.IsPrivate { + if err = NewRepoAction(user, repo); err != nil { + log.Error("repo.CreateRepository(NewRepoAction): %v", err) + } } if err = WatchRepo(user.Id, repo.Id, true); err != nil { |