question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to clone repository after upgrading to Git v2.5.0

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:18 (6 by maintainers)

github_iconTop GitHub Comments

21reactions
dschocommented, Sep 27, 2019

It’s most likely the overhauled POSIX-to-Windows path mangling of MSys2. Try

MSYS_NO_PATHCONV=1 git tfs clone http://myServer:8080/tfs/DefaultCollection $/myRepo -d

(This tip is also shown in the Release Notes.)

8reactions
molehillrockercommented, Sep 8, 2015

Using $//myRepo instead of $/myRepo works also, as stated in Git’s release notes.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found