Skip to content
Snippets Groups Projects
Commit d920a06f authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Fix branch path

parent 10325204
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ IS_TEST_BRANCH = '-t' in sys.argv ...@@ -11,7 +11,7 @@ IS_TEST_BRANCH = '-t' in sys.argv
def get_changed_dockerfiles(vs_master=False): def get_changed_dockerfiles(vs_master=False):
"""Checks the last Git commit and returns a list of changed Dockefiles""" """Checks the last Git commit and returns a list of changed Dockefiles"""
if vs_master: if vs_master:
diff_cmd = "git --no-pager diff --name-only master" diff_cmd = "git --no-pager diff --name-only origin/master"
else: else:
diff_cmd = "git diff-tree --no-commit-id --name-only -r HEAD" diff_cmd = "git diff-tree --no-commit-id --name-only -r HEAD"
child = sp.Popen(diff_cmd, shell=True, stdout=sp.PIPE, stderr=sp.PIPE) child = sp.Popen(diff_cmd, shell=True, stdout=sp.PIPE, stderr=sp.PIPE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment