gpt4 book ai didi

Git-tfs 克隆挂起从依赖的 TFS 远程获取 - 无限循环?

转载 作者:行者123 更新时间:2023-12-02 01:32:01 25 4
gpt4 key购买 nike

我正在尝试使用以下命令克隆在 Visual Studio Online 中托管的整个 TFVC 存储库和分支:

git tfs clone --with-branches --export-work-item-mapping="{mapping file path}" https://{project name}.visualstudio.com/DefaultCollection "$/{project}/{branch}"

到目前为止,这对我的几个项目都有效,但在上周末我遇到了一个问题......

该过程的开始看起来与其他项目一样,但大约 3 小时后,控制台输出每隔 20 分钟左右重复以下两行:

=> Working on TFS branch : $/{source project}/{main branch}
Fetching from dependent TFS remote '{branch}'...

我让它这样做了大约 40 个小时,它一直在做同样的事情。

我使用 --debug 选项重新运行克隆,在它挂起之前获取输出的最后一行看起来像这样:

get [c4002]$/{project}/{branch}/{file location}/{file name with extension}

我看不出这个文件有什么特别之处,但是查看变更集 4002,我可以看到那里应用了 source rename。我已经看到有关使用 git tfs 重命名的问题的报告,但它们似乎都已根据 github 线程得到解决。

有没有人遇到过这个?没有错误输出,只是好像在一遍又一遍地重试……

git tfs 版本:0.23.0.0(TFS 客户端库 12.0.0.0(MS))(64 位)

git 版本 1.9.5.msysgit.1

最佳答案

There is nothing special about this file that I can see, but looking at changeset 4002, I can see that there was a source rename applied there. I have seen issues reported around renames with git tfs, but they seem to all be resolved according to the github threads.

确实,我在 git-tfs 中添加了重命名支持,但似乎重命名的场景(我不知道到底是哪一个)没有得到很好的支持:-(

坏消息是我不知道如何复制它而且我没有时间也不想花时间在它上面(对其他人来说因为理解和支持 TFVC 太痛苦了!)

好消息是您可以:

  • 使用“-c”选项在失败的变更集之后克隆
  • 困难且未经测试:快速克隆另一个存储库中的失败变更集,在当前存储库中获取它,使用'graft'或'git replace'和'filter-branch'修复历史并继续'git tfs拿来'。辛苦,无聊,漫长但应该工作。

关于Git-tfs 克隆挂起从依赖的 TFS 远程获取 - 无限循环?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33612178/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com