empty string credential.helper causes IndexError when running huggingface-cli login
#1858
Labels
bug
Something isn't working
huggingface-cli login
#1858
Describe the bug
Installing huggingface_hub in a fresh virtualenv and then running
huggingface-cli login
results in:Debugging and searching led me to conclude that if
credential.helper
is set to an empty string, then the set comprehension which attempts to take the second value from a string split fails as there is no value.Empty credential.helper is documented behaviour: git/git@2432137#diff-2df845161726b01749450b375f8358a4cbfde0be0ebd4b551a091df5bd221c48R109
Reproduction
Install huggingface_hub.
Add a
credential.helper=
to /etc/gitconfigRun huggingface-cli login, paste a token etc - it should then fail when trying to add the token to git.
Logs
No response
System info
The text was updated successfully, but these errors were encountered: