Skip to content

Use case-insensitive matching for Git error "Not a valid object name"#3310

Closed
mdferdousalam wants to merge 1 commit intoelastic:masterfrom
mdferdousalam:fix/case-insensitive-git-error-message
Closed

Use case-insensitive matching for Git error "Not a valid object name"#3310
mdferdousalam wants to merge 1 commit intoelastic:masterfrom
mdferdousalam:fix/case-insensitive-git-error-message

Conversation

@mdferdousalam
Copy link

Fixes #3309

Git is lowercasing the fatal: Not a valid object name error message
to follow its CodingGuidelines. This change makes the string matching
case-insensitive so it works with both the current and future Git versions.

Changes:

  • Use .toLowerCase() before checking for the error substring

See: https://lore.kernel.org/git/pull.2052.git.1771836302101.gitgitgadget@gmail.com

@mdferdousalam mdferdousalam requested a review from a team as a code owner February 23, 2026 19:19
@mdferdousalam mdferdousalam requested a review from cotti February 23, 2026 19:19
@cla-checker-service
Copy link

❌ Author of the following commits did not sign a Contributor Agreement:
a58ab78

Please, read and sign the above mentioned agreement if you want to contribute to this project

@github-actions
Copy link

A documentation preview will be available soon.

Request a new doc build by commenting
  • Rebuild this PR: run docs-build
  • Rebuild this PR and all Elastic docs: run docs-build rebuild

run docs-build is much faster than run docs-build rebuild. A rebuild should only be needed in rare situations.

If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here.

@mdferdousalam mdferdousalam closed this by deleting the head repository Feb 24, 2026
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.

Use case-insensitive matching for Git error message "Not a valid object name"

1 participant