# Esrally Unknown option: -C?

**URL:** <https://discuss.elastic.co/t/esrally-unknown-option-c/56942>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [August 2, 2016, 2:35am UTC](https://discuss.elastic.co/t/esrally-unknown-option-c/56942 "2016-08-02T02:35:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![laoyang360](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@laoyang360](https://discuss.elastic.co/u/laoyang360)\
**Post date:** [August 2, 2016, 2:35am UTC](https://discuss.elastic.co/t/esrally-unknown-option-c/56942/1 "2016-08-02T02:35:30Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![laoyang360](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@laoyang360](https://discuss.elastic.co/u/laoyang360)\
**Post date:** [August 2, 2016, 3:04am UTC](https://discuss.elastic.co/t/esrally-unknown-option-c/56942/2 "2016-08-02T03:04:08Z")

</div>

when I reinstall git2, The above bugs disapper.

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [August 2, 2016, 5:23am UTC](https://discuss.elastic.co/t/esrally-unknown-option-c/56942/3 "2016-08-02T05:23:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![laoyang360](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@laoyang360](https://discuss.elastic.co/u/laoyang360)\
**Post date:** [August 3, 2016, 3:13am UTC](https://discuss.elastic.co/t/esrally-unknown-option-c/56942/4 "2016-08-03T03:13:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 10:30pm UTC](https://discuss.elastic.co/t/esrally-unknown-option-c/56942/5 "2017-07-05T22:30:32Z")

</div>


