Problem with Git submodules

Hello,

we have some nasty problems with Git submodules and ContinuaCI. Whenever we have changes made in a submodule repo and adjust the submodule owner to that new changeset, ContinuaCI has problems to catch up with that.

The error message is

A new event has been added to the event log:
Repository

Cannot get changes for repository PowerHausGit: Running ‘C:\Program Files\Git\cmd\git.exe’ with arguments “-c credential.helper= -c credential.helper=”!“C:\Program Files\VSoft Technologies\ContinuaCI\Server\Continua.Git.CredentialsHelper.exe” --key {somesecretkey}" fetch --prune --all" failed with return code 1 and error output: "Fetching origin

bash.exe: warning: could not find /tmp, please create!
bash.exe: warning: could not find /tmp, please create!
From https://dev.azure.com/{themainrepo}
fced202…52c1a76 master → origin/master
Fetching submodule lib/{subrepo}
bash.exe:**********@dev.azure.com/{thesubrepo}’: No such file or directory
bash.exe: warning: could not find /tmp, please create!
bash.exe: warning: could not find /tmp, please create!
bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Password for ‘https://powerhaus@dev.azure.com/{thesubrepo}’: No such file or directory
Errors during submodule fetch:
lib/{subrepo}
lib/{subrepo}
error: Could not fetch origin
"

We have to reset the repository in ContinuaCI (sometimes twice) to get it working again.

Version 1.9.2.509

What are we missing?

Hi Uwe,

This appears to be an issue with the Git client installation on the server. Upgrading or reinstalling Git for Windows may fix the issue.

Also check that the folder C:\Program Files\Git\tmp exists on the server - if not create it. See bash.exe: warning: could not find /tmp, please create - Stack Overflow

Otherwise, it may be due to an issue with environment variables. Check that the TMP and TEMP environment variables are both set to %USERPROFILE%\AppData\Local\Temp. Note that this needs to be done while logged in as the Continua CI Server service user. See git fetch - bash.exe: warning: could not find /tmp, please create - Stack Overflow.