diff options
author | Will Holland <william.holland@codethink.co.uk> | 2015-09-16 12:32:28 +0100 |
---|---|---|
committer | Will Holland <william.holland@codethink.co.uk> | 2015-09-16 12:32:28 +0100 |
commit | c135b11b3fc45e7c8452f4d3437d3ca60781eeb0 (patch) | |
tree | f3eb5e457c24b05d88a5dff06eb94313a6c80ba1 /builder_logic.py | |
parent | 99f13eadd6540a700c0d004b1dfbda607d260ac5 (diff) | |
download | buildslave-scripts-c135b11b3fc45e7c8452f4d3437d3ca60781eeb0.tar.gz |
debug
Diffstat (limited to 'builder_logic.py')
-rw-r--r-- | builder_logic.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builder_logic.py b/builder_logic.py index 93c6ba4..5192fb4 100644 --- a/builder_logic.py +++ b/builder_logic.py @@ -86,6 +86,7 @@ def do_build_deploy(system): return trigger_deploy(system) def get_buildslave_scripts_sha(): + import os _cmd = ['git', 'log', REF, '--format=format:%H', '-1'] _proc = subprocess.Popen(_cmd, stdout=subprocess.PIPE) _out, _err = _proc.communicate() @@ -93,6 +94,7 @@ def get_buildslave_scripts_sha(): return _out.split()[0] def get_definitions_sha(): + import os owd = os.getcwd() os.chdir(DEFINITIONS_DIR) _cmd = ['git', 'log', REF, '--format=format:%H', '-1'] |