Skip to content
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

v1.9 Backport for #7478 - Fix for bad error if Deleting a file has problems #7507

Merged
merged 1 commit into from
Jul 18, 2019

Conversation

richmahn
Copy link
Contributor

Backport for PR #7478, cherry-picked, fixes #7474 & #7492.

Found that you could never get an error message when deleting a file as then it would try to use the edit file page template and that would throw errors. Also it had the wrong comparison sign for when looking to see if you can commit to the existing branch when you really want to make a new branch. Also makes sure users are redirected to the "compare" page for PR creation page when they chose to start a new branch when saving/deleting a file.

…gitea#7478)

* Fixes go-gitea#7474 - Handles all redirects for Web UI File CRUD

* Fixes lint errors

* Typo fix

* Adds unit tests for a few helper functions

* Fixes per review

* Fix for new branch creation and to unit test

* Fixes the template used for errors on delete
@techknowlogick techknowlogick added this to the 1.9.0 milestone Jul 17, 2019
@richmahn richmahn changed the title Backport for #7478 - Fix for bad error if Deleting a file has problems v1.9 Backport for #7478 - Fix for bad error if Deleting a file has problems Jul 17, 2019
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Jul 17, 2019
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jul 17, 2019
@lunny lunny merged commit 91e24a3 into go-gitea:release/v1.9 Jul 18, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants