Conflicts:
GitTfsTest/Core/GitChangeInfoTests.cs
GitTfsTest/Integration/CloneTests.cs
GitTfsTest/Integration/IntegrationHelper.cs
Conflicts were because extra unit tests were added and existing unit
tests were changed in the unicode branch, and this was done before
the move to xUnit.
Compiled for TFS Server 2008, 2010, 2012 and tested with TFS Server 2010, 2012
!! This command need that the clone of the TFS repository was made from the trunk (and not on the whole repository) and with history (not a quick-clone).
Usage for TFS 2010 and 2012 :
-------------------------------
* to clone one branch
git tfs init-branch $/Repository/path <git-branch-name-wished>
ex :
git tfs init-branch $/Repository/ProjectBranch
git tfs init-branch $/Repository/ProjectBranch myNewBranch
* to clone all branches
git tfs init-branch --all
Usage for TFS 2008 :
---------------------
* to clone one branch
git tfs init-branch--parent-branch=$/Repository/ProjectParentBranch $/Repository/path <git-branch-name-wished>
ex :
git tfs init-branch --parent-branch=$/Repository/ProjectParentBranch $/Repository/ProjectBranch
git tfs init-branch --parent-branch=$/Repository/ProjectParentBranch $/Repository/ProjectBranch myNewBranch
This test came very close to detecting the bug in #174. However, the bug only manifests itself when the difference in casing occurs deeper than the folders that are the children of the repo folder (so "$/MyProject/Folder" and "$/MyProject/folder" worked, but "$/MyProject/Foo/Bar" and "$/MyProject/Foo/bar" didn't work). The fixed test passes when 3a1d996aad is applied and fails without it.
Also, the line endings have been normalized to LF, which was the dominant line ending in the file (but seems to be contrary to most other files in the repo).
When -z has been given, diff-tree does not munge pathnames and uses
NULs as output field terminators. This allows for secure parsing of
the output.
Quoted paths were not correctly interpreted as UTF-8. This avoids the
problem by not having quoted paths.
--AuthorsFile parameter added to the Fetch command and is registered as a singleton.
--Unit tests test the regex of the line parsing.
Updated logic around parsing the original changeset owner. This was needed to properly identify a user who had been deleted from TFS without the need for an AuthorsFile.