Honour settings from the `$HOME/.gitconfig` file
It would be nice if hg-git honoured the settings from $HOME/.gitconfig
, in particular those relating to SSL configuration.
This should be as simple as:
diff -r 0cef8e3230ba hggit/git_handler.py
--- a/hggit/git_handler.py Tue May 12 11:05:31 2020 +0000
+++ b/hggit/git_handler.py Wed May 13 10:23:25 2020 +0200
@@ -1727,22 +1727,14 @@
ua = b'git/20x6 (hg-git ; uses dulwich and hg ; like git-core)'
config = dul_config.ConfigDict()
config.set(b'http', b'useragent', ua)
+ config = dul_config.StackedConfig (
+ [config] + dul_config.StackedConfig.default_backends())
if pycompat.ispy3:
# urllib3.util.url._encode_invalid_chars() converts the path
# back to bytes using the utf-8 codec
str_uri = uri.decode('utf-8')
else: