Reputation: 947
We are using TFVC server workspace repository and there is a problem with too long file names, which causes the conversion to abort:"The following path contains more than the allowed 259 characters". The mentioned folder was a renamed one. Can I somehow exclude this folder? tfignore does only work on local workspace? I also want to clone the repository to git with its history.
I tried to check out to a previous changeset, but somehow I still received the error.
If anyone has a way to circumvent this problem I would be happy to hear about it. I could create a branch of the problematic folder etc.
Upvotes: 1
Views: 85
Reputation: 31227
In the command line, when you clone, you could specify a folder that will be used to map the tfvc workspace with the option --workspace
to handle this specific use case.
And in your case, you have interest to specify the shortest path possible. Something like --workspace=c:\w
See https://github.com/git-tfs/git-tfs/blob/master/doc/commands/clone.md
Or maybe git-tfs already supports long paths but it needs to be enabled in the operating system https://github.com/git-tfs/git-tfs/pull/1221
See also this documentation https://github.com/git-tfs/git-tfs/blob/master/doc/Set-custom-workspace.md
If your repository already exists maybe running the following git command inside it is your best option:
git config git-tfs.workspace-dir c:\w
Upvotes: 0