While this is a common question, this one is particlary different than the others, when I issue git ls-remote https://myuser@bitbucket.org/myser/repo.git , it asks me for the password and gives me the result:
tomaz:~/ $ git ls-remote https://tcanabrava@bitbucket.org/tcanabrava/randrepo.git
Password:
1c8cd7266ad19de952db096a0f25ee16dc3cdace HEAD
1c8cd7266ad19de952db096a0f25ee16dc3cdace refs/heads/master
but when I issue git clone...
tomaz:~/ $ $git clone https://tcanabrava@bitbucket.org/tcanabrava/randrepo.git
Cloning into 'felipao'...
Password:
error: RPC failed; result=22, HTTP code = 401
fatal: The remote end hung up unexpectedly
And I'v already looked over and over on all google answers for this particular error and nothing could fix it.
- I'm sure that the address is correct, it lists the branches using ls-remote.
- already set the postBuffer = 52428800
- the proxies are fine, it lists the branches using ls-remote
- run with GIT_CURL_VERBOSE=1 too long to post here unfortunately =(
I had similiar problem. I'm not sure what helped, but:
These are exact symptomps of a curl 7.28 bug. If you are using curl 7.28 downgrade it or switch to SSH auth until the fix comes out.
More info:
With Git 2.18 (Q2 2018), you now have more control over
curl
as used by Git.The HTTP client code used to advertise that Git accept gzip encoding from the other side; instead, just let cURL library to advertise and negotiate the best one.
See commit eaf6a1b, commit 1a53e69 (22 May 2018) by Brandon Williams (
mbrandonw
).(Merged by Junio C Hamano --
gitster
-- in commit 13e8be9, 30 May 2018)