Deleting automatically created workspace after an exception.
Merge branch 'workspaceFix' of https://github.com/szmartynuska/git-tfs …
Tighten up GetWorkspace.
Be more proactive about cleaning up workspaces.
Only proactively clean up .git/tfs/workspace.
@szmartynuska - thanks for getting this started! How does this look?
deleting all mappings to directories in working directory path
Finally got around to check it and now the temp workspace is properly deleted. Found another issue though - cleaning up workspace while having more than one mapping doesn't realy work because it tries to compare mappings' paths with (by default) path to internal directory ".git\tfs\default\workspace". Made a fix at szmartynuska@46b75dc5d9a086fb90d4a6421dbbd504b7d3481c. It now deletes all mappings to any folder in the working directory path, which is required for the MappingConflictException not to be thrown.
Interweave some comments.
I'm normally not big on comments, but I thought I could validate my
reading of the code and answer future questions at the same time.
@szmartynuska - I pulled in your change, and made a couple of tweaks. Could you look over the comments in 4d33862 and let me know if they look right?
They sound ok, as far as I'm concerned.
Merge remote-tracking branch 'origin/master' into workspace-fix