Summary
Remote URL change from '%40' to '@' during authentication due to character encoding.
Eg.
The actual Source Path is http://user1%40user.com@<IP Address>/path/to/repo.git
During authentication, SourceTree change to http://user1@user.com@<IP address> and prompts error fatal: could not read Password for 'http://user1@user.com@1<IP Address>': Invalid argument
Steps to Reproduce
- Have an account username with '@'. eg. user1@user.com
- Clone a private repository with the URL : http://<Username>@<IP Address>/path/to/repo.git
Expected Results
Error:
fatal: could not read Password for 'http://<Username with '@'>@<IP Address>': Invalid argument
Actual Results
No Error and the URL will be http://<Username with '%40'>@<IP Address>
Workaround
Use the below URL to clone/pull/push the repository
https://username:password@<IP Address>/path/to/repo.git
- mentioned in
-
Page Loading...