Skip to content

DeleteRepoFile incorrectly handles Delete to new branch #9752

@zeripath

Description

@zeripath

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions