diff options
author | Bwko <bouwko@gmail.com> | 2017-01-26 15:44:37 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-26 22:44:37 +0800 |
commit | e08421017c50d881710f52c9fd942239a4a928ae (patch) | |
tree | 6df7f199ab5e13dd4df3c57f2f167c7484fa5710 /routers/repo/pull.go | |
parent | d1b5498cc0128b463a04d9e216234d247b0761cd (diff) | |
download | gitea-e08421017c50d881710f52c9fd942239a4a928ae.tar.gz gitea-e08421017c50d881710f52c9fd942239a4a928ae.zip |
Add ability to fork your own repos (#761)
Diffstat (limited to 'routers/repo/pull.go')
-rw-r--r-- | routers/repo/pull.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go index 56a6a79f61..f0162cca01 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -109,12 +109,6 @@ func ForkPost(ctx *context.Context, form auth.CreateRepoForm) { return } - repo, has := models.HasForkedRepo(ctxUser.ID, forkRepo.ID) - if has { - ctx.Redirect(setting.AppSubURL + "/" + ctxUser.Name + "/" + repo.Name) - return - } - // Check ownership of organization. if ctxUser.IsOrganization() { if !ctxUser.IsOwnedBy(ctx.User.ID) { |