I'm using git-tfs to clone a TFS repository, something I've been able to do successfully in the past. But with the current version when I run the command, like this...
git tfs clone http://NameOfOurTfsServer:8080/ $/NameOfMyProject -d
...I get an error code 128, e.g.:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Sep.Git.Tfs.Core.GitCommandException: Command exited with error code: 128 at Sep.Git.Tfs.Core.GitHelpers.Close(Process process) in c:\Users\matt\dev\github\git-tfs\GitTfs\Core\GitHelpers.cs:line 205 at Sep.Git.Tfs.Core.GitHelpers.<>c__DisplayClass8.<CommandOutputPipe>b__7() in c:\Users\matt\dev\github\git-tfs\GitTfs\Core\GitHelpers.cs:line 59 [etc.]
This is on git-tfs 14.0. I've tried several previous versions of git-tfs, but I get the same or similar errors on each one.
Has anyone run into this? Do you know a fix?
I have had issues like this, especially when the TFS server drops the connection. My workaround has been to delete the folder and run the same command again.
You may try quick-clone instead of clone, since it will finish faster. I am assuming that you don't need the full history.