Esrally Unknown option: -C?

When I running esrally, the follow bugs below:
esrally --pipeline=from-distribution --distribution-version=5.0.0-alpha2
Unknown option: -C
usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]
[-p|--paginate|--no-pager] [--no-replace-objects]
[--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]
[--help] COMMAND [ARGS]

____        ____

/ __ ____ / / / __
/ // / __ `/ / / / / /
/ , / // / / / // /
/
/ ||_,///_, /
/____/

Writing additional logs to /root/.rally/benchmarks/races/2016-08-02-02-28-00/local/logs/rally_out.log

Unknown option: -C

Do you konw the reason?

when I reinstall git2, The above bugs disapper.

Hi @laoyang360,

we use git -C internally in Rally to simplify git operations in different directories. From the git man page:

-C < path >
Run as if git was started in instead of the current working directory.

As far as I know this option has been added in git 1.8.5 but they had some bugs. Great that you've resolved the problem now though.

Daniel

1 Like

Tks, But now I find the other bug:
https://discuss.elastic.co/t/the-below-bugs-appers-when-running-esrally/57063