Perform git reset --hard on the elasticsearch repo when running tests.

This commit is contained in:
Honza Král
2014-03-26 18:46:14 +01:00
parent 67d2c7c6d1
commit d205cbfbb5
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ def fetch_es_repo():
print('Fetching elasticsearch repo...')
subprocess.check_call('cd %s && git fetch https://github.com/elasticsearch/elasticsearch.git' % repo_path, shell=True)
# reset to the version fron info()
subprocess.check_call('cd %s && git checkout %s' % (repo_path, sha), shell=True)
subprocess.check_call('cd %s && git reset --hard %s' % (repo_path, sha), shell=True)
def run_all(argv=None):
sys.exitfunc = lambda: sys.stderr.write('Shutting down....\n')