We are using TFS Git to create and merge pull requests. This is working fine for existing users, but when we add new users in AD (copying the exact same rights as existing users), the pull requests from the new users get an error (merge failed).
Access to TFS is presumably granted by adding the user to the project team - no users seem to have any additional access rights that we can find.
We have tried with multiple new users with different names (everything else is the same as existing users), but we are not really getting any closer to understanding why this occurs.
We have also verified that pull requests created on the exact same code, with existing users, do not have this problem.
What can we do to investigate why the merge is failing?
Check
Applications and Services Logs => Microsoft-Team Foundation Server => Debug
in eventvwr.exe for the following:The issue in our case was that the angle brackets (
< >
) needed to be removed from the offending users' emails.Note: There is an alternative solution involving TFS-hosted Git file paths pointing to URIs on devs' laptops here.
Try to merge the branches in Visual Studio to see whether you'll get conflict or detailed error message. If there is conflicts, use the merge tool to resolve the conflicts, then commit and push the merge.