]> source.dussan.org Git - gitea.git/commit
Decrement Fork Num when converting from Fork (#17035)
authorzeripath <art27@cantab.net>
Tue, 14 Sep 2021 17:07:08 +0000 (18:07 +0100)
committerGitHub <noreply@github.com>
Tue, 14 Sep 2021 17:07:08 +0000 (18:07 +0100)
commit0a542dd59f8061797976f33690bf10357aa0b0ad
treea74494a0e8120e4bfd32583e152ef466641de17b
parent26ef180f466046f9cfab87eea5ea93f5d6da6998
Decrement Fork Num when converting from Fork (#17035)

When converting repositories from forks to normal the root NumFork needs to be
decremented too.

Fix #17026

Signed-off-by: Andrew Thornton <art27@cantab.net>
models/repo.go
modules/repository/fork.go
routers/web/repo/setting.go