When I try to build using TFS with Git, there is a limitation where the TFS git provider does not yet support helper modules. A bit of pain, but what the hell can I tell TFS to run a batch file before compiling. I used this to invoke the git script manual to update all of my submodules in my "super" project.
The command executed by this command is simple: git update the submodule --init --recursive
This worked fine and dandy before I migrated the submodule source to TFS, but now the TFS build does not work because the above git script module no longer works.
So, what does TFS do before build. Pulls current sources from git to a folder on the build server that I have access to.
If I open git Bash in this folder and run the following commands: git submodule init git update submodule
I get the following error, and I can not figure out in my life what it is. I tried to search for this specific error, which usually indicates that the compilation of the submodule will be clicked after the repetition of the “super project” is done. But I can verify that all submodules are completed and pushed before the “super project” completes and clicks. Here is the output of the TFS git commands:
james@TFS /C/Builds/1/Technique Webs/MIS Console 5.2 Development/src (5.2development) $ git submodule init james@TFS /C/Builds/1/Technique Webs/MIS Console 5.2 Development/src (5.2development) $ git submodule update Username for 'http://tfs:8080': james Password for 'http://james@TFS:8080': <password> From http://TFS:8080/TFS/Technique/_git/Technique%20Library * branch HEAD -> FETCH_HEAD fatal: reference is not a tree: 33106ea146d470159e327c1b2d623d14f522cdd4 Unable to checkout '33106ea146d470159e327c1b2d623d14f522cdd4' in submodule path 'calc-engine' james@TFS /C/Builds/1/Technique Webs/MIS Console 5.2 Development/src (5.2development) $
abbottdev
source share