New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when cloning from root without specifying an explicit repository name #1201
Comments
Question: where are you running I ask because this is a common issue when running from MinTTY terminal in Bash because the MinGW framework does "automagic" path conversion to convert things that "look like" a Unix path to a Windows-y path. The solution in this case, is to prefix your command with
HTH. |
As for cloning and repo naming, technically, there's no name for
HTH. |
So the correct "fix" is to error out with a nice message if: Path is root, but no explicit repo name has been specified. Thank you! |
I like your fix.
Could you do a pull request?
And perhaps instead of returning a generic string 'repo', we could try to
extract a meaningful string from server URL?
|
I need to clone a complete repository.
Version: master (built from source)
Command:
quick-clone http://##srv##:8080/tfs/visualstudio $/
Failure:
Der Pfad hat ein ungültiges Format.
(The path format is invalid)I debugged a little bit into it, and found that the exception came from Clone.cs
With the following change, it almost works:
Now it created my repo in
.\repo\repo\.git
, but except for that little "cosmetic error" cloning worked. I did not yet test anything else. Will probably test commiting tomorrow ...Looking through the history, there have been a few attempts regarding this, in 2014 it seemed to work for one person, and I found a PR that fixed it, so I guess this is a regression?
Do you know more about this already, or should I investigate and maybe send a PR?
The text was updated successfully, but these errors were encountered: