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

DeleteRepoFile incorrectly handles Delete to new branch #9752

Closed
zeripath opened this issue Jan 13, 2020 · 0 comments · Fixed by #9769
Closed

DeleteRepoFile incorrectly handles Delete to new branch #9752

zeripath opened this issue Jan 13, 2020 · 0 comments · Fixed by #9769
Labels

Comments

@zeripath
Copy link
Contributor

Whilst looking at #9708 I've noticed that there is an issue with:

if git.IsErrNotExist(err) {

This should be

if err != nil && !git.IsErrNotExist(err) {

however this breaks several tests which need to also be fixed.

zeripath added a commit to zeripath/gitea that referenced this issue Jan 14, 2020
zeripath added a commit that referenced this issue Jan 14, 2020
6543 pushed a commit to 6543-forks/gitea that referenced this issue Jan 14, 2020
sapk pushed a commit that referenced this issue Jan 15, 2020
Co-authored-by: zeripath <art27@cantab.net>
@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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant