[英]Jenkins Windows 10: git-submodule cannot be used without a working tree
我們有 jenkins Windows 10 CI 生成器。
我們的項目有子模塊,我想“git submodule update --init --recursive”。
此命令是從 cmake 腳本調用的,但即使啟用子模塊處理,錯誤也會相同: C:\Program Files\Git\mingw64/libexec/git-core\git-submodule 不能在沒有工作樹的情況下使用。
Current setup copies all files of project from Ubuntu jenkins is run on( the setup is not known for sure and I started studying Jenkins from bottom ) and puts them into Windows CI builder into Pull_Request_Builder_Winx64 folder.
嘗試從此文件夾手動運行 git:結果相同
嘗試在使用 git 克隆下載的同一項目上手動運行更新,它可以工作。
請幫忙找到問題的根源,在此先感謝
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.