Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sourcegraph: fix wrong git config #841

Merged
merged 1 commit into from
Oct 1, 2024
Merged

Conversation

stefanhengl
Copy link
Member

@stefanhengl stefanhengl commented Oct 1, 2024

Turns out git config doesn't support "_" in the keys.

"The variable names are case-insensitive, allow only alphanumeric characters and -, and must start with an alphabetic character." source

The existing tests didn't catch this because we never actually execute git config. Now we do.

Test plan:
New unit test

Turns out git config doesn't support "_" in the keys.

https://git-scm.com/docs/git-config/2.22.0#_configuration_file

"The variable names are case-insensitive, allow only alphanumeric
characters and -, and must start with an alphabetic character."

Test plan:
New unit test
@cla-bot cla-bot bot added the cla-signed label Oct 1, 2024
@stefanhengl stefanhengl requested a review from a team October 1, 2024 11:23
@stefanhengl stefanhengl marked this pull request as ready for review October 1, 2024 11:23
@stefanhengl stefanhengl merged commit 6755eca into main Oct 1, 2024
9 checks passed
@stefanhengl stefanhengl deleted the sh/fix-latest-commit-date branch October 1, 2024 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants