DeleteRepoFile incorrectly handles Delete to new branch #4642

Closed
opened 2025-11-02 05:57:11 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @zeripath on GitHub (Jan 13, 2020).

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

1751d5fcf2/modules/repofiles/delete.go (L49)

This should be

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

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

Originally created by @zeripath on GitHub (Jan 13, 2020). Whilst looking at #9708 I've noticed that there is an issue with: https://github.com/go-gitea/gitea/blob/1751d5fcf200b7d78ec5543fa620174c69d2746a/modules/repofiles/delete.go#L49 This should be ```go if err != nil && !git.IsErrNotExist(err) { ``` however this breaks several tests which need to also be fixed.
GiteaMirror added the type/bug label 2025-11-02 05:57:11 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4642