From 2dbe48e26044ad40196d97086ff19993d284abea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Mon, 24 May 2021 22:13:35 +0200 Subject: [PATCH] common/changed_templates.sh: store merge-base in file --- common/travis/changed_templates.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/travis/changed_templates.sh b/common/travis/changed_templates.sh index 6b27ad8227f..d36ac8c52a9 100755 --- a/common/travis/changed_templates.sh +++ b/common/travis/changed_templates.sh @@ -8,9 +8,11 @@ elif command -v git >/dev/null 2>&1; then GIT_CMD=$(command -v git) fi +printf '%s ' "$(git merge-base FETCH_HEAD HEAD)" HEAD > /tmp/revisions + /bin/echo -e '\x1b[32mChanged packages:\x1b[0m' $GIT_CMD diff-tree -r --no-renames --name-only --diff-filter=AM \ - "$(git merge-base FETCH_HEAD HEAD)" HEAD \ + $(cat /tmp/revisions) \ -- 'srcpkgs/*/template' | cut -d/ -f 2 | tee /tmp/templates |