Reputation: 25597
I have a remote Git repository that is to be accessed via HTTPS with basic auth, whose credentials are properly configured in my ~/.netrc
, e.g.
$ cat ~/.netrc
machine example.com login example-user password ***
A git clone
works fine:
$ git clone https://example.com/some-repo
However, trying the same with Mercurial using the hggit
extension fails with:
$ hg clone git+https://example.com/some-repo
abort: http authorization required for https://example.com/some-repo
Note that hg clone git+https://...
works without issues on remote Git repositories that have no HTTP auth.
hg clone
(with hggit
) use my .netrc
credentials?hg clone
(with hggit
)?Upvotes: 0
Views: 42