Question

I am trying to clone a TFS repository using git-tfs.

It works great with TFS projects that don´t have a space in the name, such as:

git tfs clone http://tfs:8080/ $/TeamProject/folder

But I also have some projects/folders that has both spaces and swedish characters in it:

git tfs clone http://tfs:8080/ $/TeamProject/my swedish åäö folder1/folder2

When I run the command I get:

The item $/TeamProject/my swedish åäö folder1/folder2 does not exist at the spcified version.

Any suggestion how to fix this?

Was it helpful?

Solution 2

I solved the problem by renaming the projects in TFS, and removed the swedish characters.

As Polynomial said, it is possible to have folders/projects that contains space if you enclose the path with double quotes.

OTHER TIPS

Here's a working example of cloning a TFS (TFVC) repository using git tfs where the TFS (TFVC) repository contains spaces:

git tfs clone http://tfs:8080/ $/"Team Project/Folder Name"

The key "trick" to making it work is to put the double quotes around the team project / folder name (but don't put them around the $/ part).

i.e. $/"Team Project/Folder Name"

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top