There is an existing empty git repo in the temp folder.
I created a .git file as suggested, manually kicked off the build, and it all worked fine.
However, when initiating a build via remote polling I get this:

Started on 20/03/2014 3:59:54 PM
Using strategy: Default
[poll] Last Built Revision: Revision be2c3d7df7fa6eb0de12b3b7b50c1180ad63cb2f (origin/master)
using .gitcredentials to set credentials
Could not remove the credential section from the git configuration
FATAL: hudson.plugins.git.GitException: Command "git init" returned status code 128:
stdout: 
stderr: fatal: Invalid gitfile format: C:/DOCUME~1/!SYSCA~1/LOCALS~1/Temp/.git

hudson.util.IOException2: hudson.plugins.git.GitException: Command "git init" returned status code 128:
stdout: 
stderr: fatal: Invalid gitfile format: C:/DOCUME~1/!SYSCA~1/LOCALS~1/Temp/.git

	at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:458)
	at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
	at hudson.scm.SCM.poll(SCM.java:373)
	at hudson.model.AbstractProject._poll(AbstractProject.java:1584)
	at hudson.model.AbstractProject.poll(AbstractProject.java:1493)
	at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:462)
	at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:491)
	at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: hudson.plugins.git.GitException: Command "git init" returned status code 128:
stdout: 
stderr: fatal: Invalid gitfile format: C:/DOCUME~1/!SYSCA~1/LOCALS~1/Temp/.git

	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1183)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1160)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1156)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1152)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1045)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:998)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:989)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getHeadRev(CliGitAPIImpl.java:1535)
	at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:491)
	at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:456)
	... 13 more
Done. Took 2.6 sec
No changes
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to