diff options
author | James E. Blair <corvus@inaugust.com> | 2019-03-02 05:07:19 -0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-03-02 15:07:19 +0200 |
commit | a5604b161100ca8723c016688f61003dc138316a (patch) | |
tree | c7751443cfb0b91484a7538a148e9639d96b4768 /Gopkg.lock | |
parent | b28e527a2bc6bba034cbb9ed48b93d0422e09032 (diff) | |
download | gitea-a5604b161100ca8723c016688f61003dc138316a.tar.gz gitea-a5604b161100ca8723c016688f61003dc138316a.zip |
Fix renames over redirects (#6216)
In #6211, we started creating repo_redirects for ownership transfers,
however that opens an edge case where a user might perform the
following sequence:
rename org1/repo1 -> org1/repo2 (creates org1/repo1 redirect)
transfer org2/repo1 -> org1/repo1 (org1/repo1 redirect continues to exist)
rename org1/repo1 -> org1/repo3 (fails due to existing org1/repo1 redirect)
This change ensures that each time we rename or transfer a repo,
we delete any existing redirects at the target location. This
already happens when a new repo is created. By doing this we ensure
that we'll never have both a repo and a redirect at the same location.
Signed-off-by: James E. Blair <jeblair@redhat.com>
Diffstat (limited to 'Gopkg.lock')
0 files changed, 0 insertions, 0 deletions