Merge pull request #712 from LaurentGoderre/fix-stackbrew-pr-change

Improved the change detection logic for the stackbre PR script
This commit is contained in:
Laurent Goderre 2018-05-01 08:24:37 -04:00 committed by GitHub
commit 17697173a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ function updated() {
local images_changed
IFS=' ' read -ra versions <<< "$(IFS=','; get_versions)"
images_changed=$(git show --name-only "$COMMIT_ID" "${versions[@]}")
images_changed=$(git diff --name-only "$COMMIT_ID".."$COMMIT_ID"~1 "${versions[@]}")
if [ -z "$images_changed" ]; then
return 1