Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 574
Zeno Avatar asked Feb 07 '12 09:02

Zeno


1 Answers

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"

like image 197
Tod Thomson Avatar answered Oct 22 '22 17:10

Tod Thomson