Commit d23abb3
Improve Git Credential Helper Detection for Linux (GCM & libsecret support) (#3264)
* feat: add support for Git Credential Manager (GCM)
- Update GIT_CREDENTIAL_REGEX to match git-credential-manager
- Add tests to verify GCM is recognized and handled
Ref: https://git-scm.com/doc/credential-helpers
* feat: support for git-credential-libsecret in credential helper detection
- Extend GIT_CREDENTIAL_REGEX to recognize git-credential-libsecret, enabling integration with Secret Service-compatible keyrings (e.g., GNOME Keyring, KDE Wallet) on Linux.
- Add unit tests to validate detection and handling of git-credential-libsecret
Ref: https://git-scm.com/doc/credential-helpers
---------
Co-authored-by: Lucain <[email protected]>1 parent d5249b7 commit d23abb3
File tree
2 files changed
+5
-1
lines changed- src/huggingface_hub/utils
- tests
2 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| 43 | + | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
| |||
0 commit comments