[Buildbot-devel] Setting up buildbot with Git. Failed 'git-fetch'

Axel Hecht l10n.moz at googlemail.com
Wed Feb 4 10:47:21 UTC 2009

It seems to me from looking at the srouce that it should actually reset to
FETCH_HEAD in 0.7.7 and beyond,
Which works perfectly fine for me locally.

The only exception would be if the given revision in your build was
explicitly HEAD, though I don't know how that would happen.


2009/2/4 Derek Taylor <dat at datascaler.com>

> I'm setting up buildbot for the first time.  Our sources are in Git, stored
> on github.com.
> In my master.cfg:
> f1 = BuildFactory()
> f1.addStep(Git(repourl=("git at github.com:<repo>.git")))
> f1.addStep(Compile(command=["./build.sh"]))
> I tested this from the web interface, using "Force Build"
> The build starts and the log file shows the following sequence of git
> operations:
> git-init
> git-fetch
> git-reset --hard HEAD
> The git-reset --hard HEAD fails with "Failed to resolve 'HEAD' as a valid
> ref."
> This failure occurs, because the fetch doesn't seem to pull down any
> files.  I typically do a 'git pull' or a 'git clone' to do that.  (I'm a
> fairly new git user, so I may be missing some of the finer points here.)
> To get the buildbot to work, I modified slave/commands.py to execute a 'git
> pull' instead of a 'git fetch' and then it works fine.  Of course, I didn't
> really want to modify the buildbot sources and I suspect there is something
> else I should be doing.
> Did anyone else have this problem?  How should I be setting up my
> BuildFactory to get the sources correctly?
> Thanks!
> Derek
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code
> to
> build responsive, highly engaging applications that combine the power of
> local
> resources and data with the reach of the web. Download the Adobe AIR SDK
> and
> Ajax docs to start building applications today-
> http://p.sf.net/sfu/adobe-com
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20090204/4c567342/attachment.html>

More information about the devel mailing list