]> source.dussan.org Git - gitea.git/commit
Ensure that git daemon export ok is created for mirrors (#17243)
authorzeripath <art27@cantab.net>
Wed, 13 Oct 2021 19:47:02 +0000 (20:47 +0100)
committerGitHub <noreply@github.com>
Wed, 13 Oct 2021 19:47:02 +0000 (20:47 +0100)
commit5a8dd96b33ac6e91a5c40fc4ef867625ca6ec88e
tree5b57df8b2b234382f438015348f201f96f264c7f
parent01b9d35f1a0188dadc1ee09f5e4dd98acc38ff09
Ensure that git daemon export ok is created for mirrors (#17243)

* Ensure that git daemon export ok is created for mirrors

There is an issue with #16508 where it appears that create repo requires that the
repo does not exist. This causes #17241 where an error is reported because of this.

This PR fixes this and also runs update-server-info for mirrors and generated repos.

Fix #17241

Signed-off-by: Andrew Thornton <art27@cantab.net>
models/db/context.go
models/repo.go
modules/repository/adopt.go
modules/repository/create.go
modules/repository/fork.go
modules/repository/generate.go
modules/repository/repo.go