Specify workspace directory

Oct 30, 2012 at 4:46 PM

Is there a way that I could specify the workspace directory that git-tf uses?

I have 90% of my code checked out with TFS, but the parts that I want to work on using git...

so c:\tfs\App\ProjectA c:\tfs\App\ProjectB would exist as a result of a GetLatest in tfs

Then I want to work on ProjectC so i git tf clone into c:\tfs\App\ProjectC

*ProjectA,B & C are all part of a common root folder in TFS ($/App/ProjectA $/App/ProjectB $/App/ProjectC) and there are hundreds of these so I want to just map the top level $ to c:\tfs*

Everything works fine until I want to checkin ProjectC. I get error messages about the workspace already being mapped, I presume because I have c:\tfs mapped. I think if I could say

git tf checkin --workspace-dir c:\temp I would not have this problem.

Oct 30, 2012 at 4:58 PM
Edited Oct 30, 2012 at 4:58 PM

Interesting - some of our team is using the same approach.  You can configure the temp directory used by editing .git\config and setting the tempdir option in the [git-tf] section.

Unfortunately, this is not in the latest build, so it will only work if you've built git-tf from latest.  We're in the process of finalizing a new release build at the moment, so this should be widely available shortly.

Oct 30, 2012 at 6:14 PM

Awesome, that sounds like it will work very well.