[Buildbot-devel] Problem with build.steps.source.Git on Windows with revision from sourcestamp
Russell Gallop
russell at xmos.com
Fri Jan 14 17:02:53 UTC 2011
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
More information about the devel
mailing list