Skip to content

Commit

Permalink
Fix #9752 (#9769) (#9775)
Browse files Browse the repository at this point in the history
Co-authored-by: zeripath <art27@cantab.net>
  • Loading branch information
2 people authored and sapk committed Jan 15, 2020
1 parent 1980e59 commit 602c5da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/repofiles/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func DeleteRepoFile(repo *models.Repository, doer *models.User, opts *DeleteRepo
// If we aren't branching to a new branch, make sure user can commit to the given branch
if opts.NewBranch != opts.OldBranch {
newBranch, err := repo.GetBranch(opts.NewBranch)
if git.IsErrNotExist(err) {
if err != nil && !git.IsErrBranchNotExist(err) {
return nil, err
}
if newBranch != nil {
Expand Down

0 comments on commit 602c5da

Please sign in to comment.