Automatically remove "git clone " from URL in Clone dialog
By ...@mg.to on June 04, 2013 08:08 (imported from Google Code)
What steps will reproduce the problem?
- View any git repository on bitbucket.com and click the Clone button.
- Select either the SSH or HTTPS option.
- Use Ctrl+C to copy the URL which is preselected in the dialog.
- Right click in an Explorer window and select Git Clone...
- Use Ctrl+V to paste the URL into the URL field.
- Hit Enter or click OK.
What is the expected output?
It should clone the repo.
What do you see instead?
One or more fatal error messages, the details varying between the SSH and HTTPS options.
What version of TortoiseGit and msysgit are you using? On
what operating system?
TortoiseGit 184.108.40.206, git 1.8.1.msysgit.1, Windows 8.
Please provide any additional information below.
What really happened was that the "URL" that Bitbucket provides in their Clone box doesn't look like one of these:
Instead, they kindly add 'git clone' for command line users.
git clone email@example.com:example/example.git
So that was what I pasted into TortoiseGit's Clone dialog without noticing the prefixed command.
Clearly, failing to remove the "git clone" command was a user error on my part. But you would be surprised how easy it is to miss it - especially if you're used to GitHub where their clone box provides the bare URL which pastes into TortoiseGit without error.
It would be neat if TortoiseGit could remove the "git clone" automatically when a repo is cloned.