-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The derived warehouse is converted to an ordinary warehouse, and the derived quantity has not changed #17026
Comments
translation: converting a fork to a standalone repo does not affect the fork counter of the original repo 🙃 |
The issue is that: gitea/routers/web/repo/setting.go Lines 558 to 564 in 7c84c94
Does not also call: if _, err := sess.Exec("UPDATE `repository` SET num_forks=num_forks-1 WHERE id=?", repo.ForkID); err != nil {
return fmt.Errorf("decrease fork count: %v", err)
} within the transaction that There should be a new function |
Or probably better UpdateRepository needs to load and check if the repo has changed and handle the necessary changes itself |
When converting repositories from forks to normal the root NumFork needs to be decremented too. Fix go-gitea#17026 Signed-off-by: Andrew Thornton <[email protected]>
When converting repositories from forks to normal the root NumFork needs to be decremented too. Fix #17026 Signed-off-by: Andrew Thornton <[email protected]>
Backport go-gitea#17035 When converting repositories from forks to normal the root NumFork needs to be decremented too. Fix go-gitea#17026 Signed-off-by: Andrew Thornton <[email protected]>
Backport #17035 When converting repositories from forks to normal the root NumFork needs to be decremented too. Fix #17026 Signed-off-by: Andrew Thornton <[email protected]>
Screenshots
The derived warehouse was modified by me to a normal warehouse
The text was updated successfully, but these errors were encountered: