Cannot clear mapped workspaces

1,325 views
Skip to first unread message

isxek...@lycos.com

unread,
Apr 16, 2013, 7:29:36 PM4/16/13
to git-t...@googlegroups.com
Hello,

If I use the same directory name for cloning a TFS repo, I get the following message:

$ git tfs clone --with-branches http://xx.xx.xx.xx:80 $/ProjName testrepo
Initialized empty Git repository in c:/wrk/testrepo/.git/
The path c:\wrk\testrepo\.git\tfs\default\workspace is already mapped
in workspace git-tfs-fff779c0-3c40-4e30-a0ee-1c34b0415153.
You may be able to resolve this problem.
- Run 'git tfs cleanup-workspaces' to remove the workspace.

$ git tfs cleanup-workspaces
This command must be run inside a git repository!
Already at top level, but .git not found.
Command exited with error code: 128

After I get the first message, the "testrepo" folder vanishes immediately, which is how I get the second message.
Deleting the contents of the Microsoft Team Foundation Local Workspaces directory in C:\ProgramData and C:\Users\AllUsers did not help.
I am using git-tfs 0.17.1.

Is there a way to find where the workspace mapping data is so I can remove any old data inside it?

Thanks in advance!

Matt Burke

unread,
Apr 26, 2013, 11:13:12 AM4/26/13
to git-t...@googlegroups.com
Hi!

Can you try this, from a VS command prompt?

$ tf workspace /delete git-tfs-fff779c0-3c40-4e30-a0ee-1c34b0415153

If that doesn't work, you might be able to split the clone into init
and fetch to get it to work:

$ git tfs init --with-branches http://xx.xx.xx.xx:80 $/ProjName testrepo
$ cd testrepo
$ git tfs cleanup
$ git tfs fetch --all
> --
> You received this message because you are subscribed to the Google Groups
> "git-tfs-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to git-tfs-dev...@googlegroups.com.
> To post to this group, send email to git-t...@googlegroups.com.
> Visit this group at http://groups.google.com/group/git-tfs-dev?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

isxek...@lycos.com

unread,
Apr 27, 2013, 7:51:10 AM4/27/13
to git-t...@googlegroups.com
On Friday, April 26, 2013 11:13:12 PM UTC+8, matt wrote:
Hi!

Can you try this, from a VS command prompt?

$ tf workspace /delete git-tfs-fff779c0-3c40-4e30-a0ee-1c34b0415153

If that doesn't work, you might be able to split the clone into init
and fetch to get it to work:

$ git tfs init --with-branches http://xx.xx.xx.xx:80 $/ProjName testrepo
$ cd testrepo
$ git tfs cleanup
$ git tfs fetch --all


Thanks for the response, Matt. I will try this on Monday when I come back to work.
This requires the TFS 2012 Power Tools, right? 

Matt Burke

unread,
Apr 29, 2013, 10:33:35 AM4/29/13
to git-t...@googlegroups.com
No, it should work with just a normal Team Explorer install.
Reply all
Reply to author
Forward
0 new messages