diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-05-23 04:00:10 -0400 |
---|---|---|
committer | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-05-23 16:00:10 +0800 |
commit | bdc90aeaee6e03c84d8ae02593f5d3f63a495a25 (patch) | |
tree | 9f66e88f3dfb9dc9d6b1718a92f04eb0fa781186 /models/repo.go | |
parent | cc2071c3fd43dcb35c3fab56c471a183dd4397a4 (diff) | |
download | gitea-bdc90aeaee6e03c84d8ae02593f5d3f63a495a25.tar.gz gitea-bdc90aeaee6e03c84d8ae02593f5d3f63a495a25.zip |
Delete repo redirects on repo deletion (#1776)
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/models/repo.go b/models/repo.go index a50aa2dc27..c806e2f74d 100644 --- a/models/repo.go +++ b/models/repo.go @@ -1650,6 +1650,7 @@ func DeleteRepository(uid, repoID int64) error { &Collaboration{RepoID: repoID}, &PullRequest{BaseRepoID: repoID}, &RepoUnit{RepoID: repoID}, + &RepoRedirect{RedirectRepoID: repoID}, ); err != nil { return fmt.Errorf("deleteBeans: %v", err) } |