Search code examples
gittfsclonegit-tfs

git-tfs: How do I clone a tfs project that contains spaces


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?


Solution

  • 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.