Skip to content

repo: match invalid object errors case-insensitively - #8364

Open
ifer47 wants to merge 1 commit into
gogs:mainfrom
ifer47:fix-invalid-object-name-case-v2
Open

repo: match invalid object errors case-insensitively#8364
ifer47 wants to merge 1 commit into
gogs:mainfrom
ifer47:fix-invalid-object-name-case-v2

Conversation

@ifer47

@ifer47 ifer47 commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Describe the pull request

Git is changing the capitalization of the fatal: Not a valid object name error message. Gogs currently matches that message case-sensitively when detecting broken pull requests whose base branch was deleted. This makes the match case-insensitive and adds coverage for both the current and upcoming Git messages.

Link to the issue: #8190

Checklist

  • I agree to follow the Code of Conduct by submitting this pull request.
  • I have read and acknowledge the Contributing guide.
  • I have added test cases to cover the new code or have provided the test plan. (if applicable)
  • I have added an entry to CHANGELOG. (if applicable)

Test plan

  • go test ./internal/route/repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant