[Buildbot-devel] ShellCommand is failing when running with certain parameter

Maria Marcano mariangemarcano at gmail.com
Wed Aug 21 12:36:58 UTC 2013


The following command is failing

factory.addStep(ShellCommand(command=['git', 'log', '--format=%H', '-1',
'--'], workdir="build/gitrepo"))

with the error

 fatal: invalid --pretty format: H

the error occurs on windows 7 machine, it doesn't happen when it runs on
mac.


if I run the command in a terminal on windows 7 git log --format=%H -1 --

it doesn't fail, it looks like the issue is the parameter "%H"

because running factory.addStep(ShellCommand(command=['git', 'log',  '-1',
'--'], workdir="build/gitrepo"))

doesn't fail
Do you know how this can be fixed?

I'm running

buildslave --version

Buildslave version: 0.8.7p1

Twisted version: 12.3.0

Thanks,
Maria
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20130821/34894a12/attachment.html>


More information about the devel mailing list