Skip to content

Comments

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

Open
mdferdousalam wants to merge 1 commit intoTencent:mainfrom
mdferdousalam:fix/case-insensitive-git-error-message
Open

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

Conversation

@mdferdousalam
Copy link

Fixes #1269

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

Changes:

  • Add re.IGNORECASE flag to the regex pattern matching the Git error

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

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