-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't require git #466
Don't require git #466
Conversation
With this commit we silence a spurious log message when git is not present and document under which circumstances it is ok *not* to have git installed. Closes elastic#339
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense! Left a few, mostly pedantic, comments :)
docs/install.rst
Outdated
``git 1.9`` or better is required. Verify with ``git --version``. | ||
Git is not required if **all** of the following conditions are met: | ||
|
||
* You are using Rally only as a load generator (``--pipeline=benchmark-only``) or you are referring to Elasticsearch configurations with ``--team-path`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies for the pedantry; full stop will be appreciated for this sentence (we do it elsewhere).
docs/install.rst
Outdated
Git is not required if **all** of the following conditions are met: | ||
|
||
* You are using Rally only as a load generator (``--pipeline=benchmark-only``) or you are referring to Elasticsearch configurations with ``--team-path`` | ||
* You create your own tracks and refer to them with ``--track-path`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment here, full stop would be appreciated.
esrally/utils/git.py
Outdated
@@ -8,7 +8,8 @@ | |||
def probed(f): | |||
def probe(src, *args, **kwargs): | |||
# Probe for -C | |||
if not process.exit_status_as_bool(lambda: process.run_subprocess_with_logging("git -C %s --version" % src, level=logging.DEBUG)): | |||
if not process.exit_status_as_bool(lambda: process.run_subprocess_with_logging("git -C %s --version" % src, level=logging.DEBUG), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switch to format()
for the string "git -C {} --version".format(src)
?
LGTM, thanks for the update. |
With this commit we silence a spurious log message when git is not
present and document under which circumstances it is ok not to have
git installed.
Closes #339