我们将 TFS-2013 配置为使用 git 存储库。大多数时候一切正常,但我们会遇到间歇性的构建错误 - 随着时间的推移,它们甚至似乎变得更加频繁。
这是我们在出现问题时可以在构建日志中找到的内容:
Exception Message: An error was raised by libgit2. Category = Os (Error).
Could not remove directory. File 'C:/Builds/1/MyTool/MyTool_CI/src/.git/objects/pack/pack_git2_a02380' cannot be removed: The process cannot access the file because it is being used by another process.
(type LibGit2SharpException)
Exception Data Dictionary:
libgit2.code = -1
libgit2.category = 1
什么会导致这些错误..?
最佳答案
这似乎是一个正在进行的错误,正如this thread所看到的那样:
Can you repaire your VS2013 RTM and try again? Also, you can can see event viewer to see if there any useful info or have a try on other machines as I mentioned above.
关于git - 使用 git 运行 TFS-2013 时经常出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22243658/