]> source.dussan.org Git - gitea.git/commit
Make branch deletion URL more like GitHub's, fixes #1397 (#1994)
authorLauris BH <lauris@nix.lv>
Wed, 21 Jun 2017 01:00:03 +0000 (04:00 +0300)
committerLunny Xiao <xiaolunwen@gmail.com>
Wed, 21 Jun 2017 01:00:03 +0000 (09:00 +0800)
commit0a5dc640a12d1c0475052b73a721056b53460275
tree0296d1ac30ae82269eed06daed3eb1d9bc468c2d
parent6db387a21e245dc4aa7f009ca60574e42d934ffb
Make branch deletion URL more like GitHub's, fixes #1397 (#1994)

* Make branch deletion URL more like GitHub's, fixes #1397

* Add PR branch deletion integration test

* Do not allow deleting protected branch

* Change http error code to 403 if user has no write rights to repository

* Add check to not panic if forked repository has alrady been deleted
integrations/editor_test.go
integrations/pull_create_test.go
integrations/pull_merge_test.go
routers/repo/branch.go
routers/repo/issue.go
routers/repo/pull.go
routers/routes/routes.go