Git submodule fails on TFS Build

后端 未结 2 1068
情深已故
情深已故 2020-12-30 09:50

When I try to build using TFS with Git, there\'s a limitation whereby TFS\'s git provider doesn\'t yet support sub modules. Bit of a pain, but what the heck, I\'m able to te

2条回答
  •  囚心锁ツ
    2020-12-30 10:26

    The reason is that 'Git Bash' does not know the credentials of the build account, and it should prompt every time interactively for them. Indeed, if the build account have access to all the submodules remote repo, it just need give empty user name and password for the credential prompt. This is not easy in Windows because the credential manager do not accept empty user name.

    One way to workaround it to change the submodule's URL to something like below. The '@' symbol is same as feeding empty user name and password.

    [submodule "..."]
        path = ...
        url = http://@tfs:8080/...
    

提交回复
热议问题