Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I was testing git-tfs against a TFS 2010 repository when it would mysteriously fail about halfway through the changesets with a NullReferenceException. I eventually traced the problem to the way TFS 2010 presents renames through the API. The short version is they no longer share an item ID. The long version is explained in this blog post I found:
http://blogs.msdn.com/b/michalma/archive/2009/06/15/version-control-api-changes-in-tfs-2010-part-i.aspx
I fixed the bug by adding a fallback that calls QueryHistory() with a very narrow search space and assume that anything returned must be the file's old name.
I also fixed a few other minor things and just noticed now that the line endings of the project files were probably updated, since almost the entire files are shown in the diffs. This is my first time using Git, so I might have configured something wrong on my end. Let me know if you need me to fix it.
Anyway, after this fix, git-tfs was able to go through the rest of the changesets in the TFS repository, so I guess it works. I mean, I'm able to subsequently clone the resulting git repo and I can browse the log to see an entry for each corresponding changeset in TFS, but again, new to Git, so I'm not sure what else I should be looking for.
Cheers,