[Buildbot-devel] Problem with build.steps.source.Git on Windows with revision from sourcestamp

Amber Yust ayust at yelp.com
Fri Jan 14 17:58:10 UTC 2011


Have you grabbed 0.8.3p1 for the buildslave? I believe 0.8.3 had some Git
issues.

~Amber

On Fri, Jan 14, 2011 at 9:02 AM, Russell Gallop <russell at xmos.com> wrote:

> I am having some problems using the Git source step.
>
> I have previously been using it successfully like so:
>
> checkoutstep=Git(repourl=gitrepo,
>
>                 mode="clobber",
>
>                 alwaysUseLatest=True,
>
>                 workdir="build/repo")
>
>  which checks out the HEAD of my repository.
>
> I now wish to use it as follows:
>
> checkoutstep=Git(repourl=gitrepo,
>
>                 mode="clobber",
>
>                 workdir="build/repo")
>
> To use the revision in the SourceStamp. This is okay on Linux and Mac e.g.
>
> Initialized empty Git repository in
> /local/buildbot/slave/centos_4.8_32bit/build/repo/.git/
>
> >From git://git/repo/
>
> ...
>
> HEAD is now at f269c8f Comment
>
> f269c8f2cab29a83b4ab0914bba70974ae998b9f
>
>
> But on Windows I get:
>
> Initialized empty Git repository in
> C:/buildbot/slave/windows_xp_32bit_gittest/build/repo/.git/
>
> fatal: Could not parse object 'f269c8f2cab29a83b4ab0914bba70974ae998b9f'.
>
> HEAD
>
> fatal: ambiguous argument 'HEAD': unknown revision or path not in the
> working tree.
>
> Use '--' to separate paths from revisions
>
>
> I am using a PBChangeSource with git_buildbot.py (as GitPoller didn't
> work for me) and my SourceStamp has:
>
> Repository    git://git/repo/.git
>
> Branch    master
>
> Revision    f269c8f2cab29a83b4ab0914bba70974ae998b9f
>
> Changes    see below
>
>
> I am using buildbot 0.8.2 and buildslave 0.8.3 on windows.
>
> Any ideas gratefully appreciated.
>
> Russ
>
>
> ------------------------------------------------------------------------------
> Protect Your Site and Customers from Malware Attacks
> Learn about various malware tactics and how to avoid them. Understand
> malware threats, the impact they can have on your business, and how you
> can protect your company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> 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/20110114/8b540ee4/attachment.html>


More information about the devel mailing list