TFS 2013 in VS does not report history for multi-commit file in Git

TL version; the DR: . How do we work or allow TFS reports that one file has no history when Git and Webportal report it does and clearing the TFS cache has no effect


Disclaimer: I have tried various methods in numerous StackOverflow posts regarding clearing the cache. This has not yielded results to date. I hope to find a different perspective on this matter, even if that perspective indicates that I am doing something wrong.


Recently, a colleague and I have been experiencing the following seemingly pseudo-random symptoms:

  • Clone a repository from git using the Git command line tools.
  • In VS2013, right click on the file and extract its history. Everything is working.
  • Right-click the second file and TFS behaves in one of two ways:

    • Display a dialog box with the message "Item with this key has already been added", and then display the message "No history available for this item" in the History window.
    • Just display the history window with the message "No history for this item".

Note that once this behavior appears for a file in a solution, it continues to appear without any issue. We cannot view history for it in any way through Visual Studio. However, if we go to the web portal, we can see that the history is fine and we can view the history for it using normal Git commands like git log

and git diff

.

I tried to clear the Git cache using the script shown in this article in Visual Studio (note that this is in Arabic and may require translation).

Deleting the cache did not affect the issue, although I expanded the script to cover the versions of Visual Studio and TFS I am using, did not start Visual Studio when I started it, and restarted the computer after that (and before restarting Visual Studio).

We also tried to remove the local repository and defer from scratch. It had no effect, even if it was the first operation after clearing the cache.

I am not using Power Tools for Team Foundation Server, so this is not helpful.

I am using the following software:

  • Visual Studio 2013 Update 4
  • TFS version 12.0.31101.0, which is TFS 2013 update 4.
  • Windows 8.1 64-bit
  • Git for Windows 1.9.4

Some team members also access the repository from the command line from Windows and Mac.

+3


source to share





All Articles