Unable to clone repository after upgrading to Git v2.5.0
See original GitHub issueI 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.
Issue Analytics
- State:
- Created 8 years ago
- Comments:18 (6 by maintainers)
Top Results From Across the Web
Unable to clone repository from Git
I am new to Git. I am trying to clone a repository. I am able to clone it using Git bash command. But...
Read more >git clone failure after upgrade to 15.6.1
My VS2017 CE includes Git for Windows (GitV2) and GitHub Extensions for Visual Studio. Prior to this latest VS upgrade, the "git clone" ......
Read more >Git clone or Git push fails to an Azure DevOps repository
This article discusses problems that might occur when you try to perform Git clone or Git push function to an Azure DevOps repository....
Read more >Common Git Errors, How to Fix, and 5 Ways to Avoid Them
Repository Not Found occurs while cloning or pushing modifications to a repository. The error may indicate that the repository doesn't exist or was...
Read more >Git clone/push/pull commands fail without error after ...
A workaround I've found is to git clone a repo using the git: URL rather than the https: URL for the repo -...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.