Jason Kushmaul edited a comment on Bug JENKINS-14752

Paydirt.

So I added a custom "git" batch script in my C:\Git\Cmd directory as C:\git\cmd\git.cmd"
I then set my WINDOWS slave node to use this as my git command instead of C:\git\cmd\git.exe"

@rem Do not use "echo off" to not affect any child calls.

@rem Enable extensions, the `verify other 2>nul` is a trick from the setlocal help
@verify other 2>nul
 
@rem The above script again with immediate expansion, in case delayed expansion
@rem is unavailable.
@for /F "delims=" %%I in ("%~dp0..") do @set git_install_root=%%~fI
@set PATH=%git_install_root%\bin;%git_install_root%\mingw\bin;%PATH%

@set HOME=%userprofile%


@"%git_install_root%\bin\git.exe" %*

:end
@rem End of script

And my git polling no longer hangs.

This is because I'm setting the Home directory manually. This isn't the fix for this problem, but it's a very simple work around.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to