[Buildbot-devel] Git checkout failing with git-1.8 and up unless (correct) branch specified?
Dan Kegel
dank at kegel.com
Fri Nov 16 22:13:33 UTC 2012
I did
factory.addStep(Git(repourl=repourl, mode='full', method='copy'))
without specifying a branch.
On systems with git-1.7 or so, this yields the warning
warning: Remote branch HEAD not found in upstream origin, using HEAD instead
which is confusing, but seems to work.
On systems with git-1.8, instead, you get the error
fatal: Remote branch HEAD not found in upstream origin
fatal: The remote end hung up unexpectedly
program finished with exit code 128
elapsedTime=0.189065
Specifying a branch in the Git step works around the problem,
and maybe is the right thing to do anyway.
So that settles it, my factories are no longer shared between builders,
since they have to know which branch is being built.
I confess that I am still confused with how buildbot deals with
branches. I think I'm going to add a 'git branch' step to all
my factories to see what the Git step ended up fetching.
More information about the devel
mailing list