Commit a13b023b authored by Jakub Jirutka's avatar Jakub Jirutka

travis: fix changed_repos() to print only dirs, not files

parent 19836dc2
......@@ -8,8 +8,11 @@ set -eu
# changed/created in the specified revisions.
changed_repos() {
local commit_ish="$1"
local repos="$(find * -type d -maxdepth 0 ! -name '.*')"
git diff-tree --name-only "$commit_ish" | grep -v '^\..*' || echo ''
# Print names of dirs in the current directory (it's *not* recursive)
# that contain some changes and consider only dirs listed in $repos.
git diff-tree --name-only "$commit_ish" -- $repos
# Prints names of repo's subdirs (i.e. abuilds) that contains APKBUILDs which
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment