git-tfs: Unable to clone repository after upgrading to Git v2.5.0
I recently ran choco upgrade all
, which updated Git from v1.9.5.20150320 to v2.5.0. Since then, I am not able to clone repositories anymore. When I hit git tfs clone http://myserver:8080/tfs/DefaultCollection $/myRepo
it changes the repository to a weird looking absolute path: $/C:/Program Files/Git/myRepo.
Output of the command:
$ git tfs clone http://myServer:8080/tfs/DefaultCollection $/myRepo -d
Command run:git tfs clone http://myServer:8080/tfs/DefaultCollection $C:/Program Files/Git/myRepo test -d
No authors file used.
git-tfs version 0.22.0.0 (TFS client library 11.0.0.0 (MS)) (64-bit)
Sep.Git.Tfs.Core.GitTfsException: TFS repository can not be root and must start with "$/".
at Sep.Git.Tfs.Util.GitTfsCommandRunner.Run(GitTfsCommand command, IList`1 args)
at Sep.Git.Tfs.GitTfs.Main(GitTfsCommand command, IList`1 unparsedArgs)
at Sep.Git.Tfs.Program.Main(String[] args)
TFS repository can not be root and must start with "$/".
You may be able to resolve this problem.
- Try using $/C:/Program Files/Git/myRepo
I downgraded to Git v1.9.5.20150320 and now everything works fine again, so I think it has something to do with the latest release of Git.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 18 (6 by maintainers)
It’s most likely the overhauled POSIX-to-Windows path mangling of MSys2. Try
(This tip is also shown in the Release Notes.)
Using
$//myRepo
instead of$/myRepo
works also, as stated in Git’s release notes.Also see #940 for detailed instructions. But @dscho hit the nail on the head with
That was my same conclusion and it works perfectly every time. 😃