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

scriv.user_nick appears to be invalid as a Git config option #130

Open
mdickinson opened this issue Jun 8, 2024 · 0 comments
Open

scriv.user_nick appears to be invalid as a Git config option #130

mdickinson opened this issue Jun 8, 2024 · 0 comments

Comments

@mdickinson
Copy link

mdickinson commented Jun 8, 2024

The configuration docs say:

If you don't like the name it finds for you, you can set a name as the scriv.user_nick git setting.

But when I try this, I get an error from Git:

mdickinson@lovelace ~ % git config --global scriv.user_nick "mdickinson"
error: invalid key: scriv.user_nick

From the Git docs, I see:

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

which leads me to believe that it's the underscore that's the issue here. If I try instead:

git config --global scriv.user-nick "mdickinson"

then the configuration succeeds, but of course then scriv doesn't pick this up.

Looking at other standard Git options, it appears the prevailing convention is camelCase, so maybe user_nick should be changed to userNick?

Scriv version: 1.5.1
Git version: 2.45.2

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

No branches or pull requests

1 participant