Team Foundation Server使用哪个版本的Git? [英] Which version of Git does Team Foundation Server use?

查看:88
本文介绍了Team Foundation Server使用哪个版本的Git?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的git Bitbucket存储库中有一些无效的电子邮件,由于收到错误,我们无法将其导入到TFS服务器.

We have some invalid emails in our git Bitbucket repositories that we are unable to import to TFS server as we get an error.

在git 2.6中,我们可以关闭fsck检查功能,以允许我们在 https://blog.github.com/2015-09-29-git-2-6-includes-flexible-fsck-和改善状态/

It looks like with git 2.6 we can turn off the fsck check functionality to allow us to get the repos in https://blog.github.com/2015-09-29-git-2-6-including-flexible-fsck-and-improved-status/

但是,谁知道TFS使用哪个版本的git?或如何做到这一点?

However does anyone know which version of git TFS uses? Or how this might be done?

我们已经尝试修复存​​储历史记录,但是这会断开与子模块的所有连接,这对于我们来说确实是不可接受的.

We've tried fixing our repo histories but it would break all connections to our submodule, which isn't really acceptable for us.

任何建议,不胜感激!

推荐答案

它没有; Team Foundation Server(和Visual Studio Team Services)混合使用libgit2和自定义Git实现.由于他们将git存储库存储在SQL Server(和SQL Azure)中,因此它们不能使用Git的引用实现,该参考实现只能在磁盘存储库上运行.

It doesn't; Team Foundation Server (and Visual Studio Team Services) use a mix of libgit2 and a custom Git implementation. Since they store git repositories in SQL Server (and SQL Azure), they cannot use the reference implementation of Git, which can only operate on on-disk repositories.

TFS(和VSTS)在推送存储库时执行存储库完整性检查(git fsck或等效的检查).这样可以确保您不会推送损坏的存储库,也不会将问题传播给其他用户.

TFS (and VSTS), like most Git hosting providers, perform a repository integrity check (git fsck, or its equivalent) when you push a repository. This ensures that you aren't pushing a damaged repository, or propagating problems to other users.

请注意,这实际上与您所指出的更改正交.这些新设置会影响fsck的行为. fsck是否由receive.fsckobjects配置设置配置.无论如何,这都是没有意义的,因为TFS(和VSTS)不使用git的引用实现.

Note that this is actually orthogonal to changes that you've pointed out. Those new settings affect how fsck behaves; whether to fsck or not is configured by the receive.fsckobjects configuration setting. This is moot in any case, since TFS (and VSTS) does not use the reference implementation of git.

目前无法在TFS(和VSTS)中禁用此行为.

There is no way to disable this behavior in TFS (and VSTS) at present.

这篇关于Team Foundation Server使用哪个版本的Git?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆