Exclude deleted files from safe template linting

This commit is contained in:
Andy Armstrong
2016-05-18 12:52:21 -04:00
parent 06fa08394d
commit a7e754dd9a

View File

@@ -67,7 +67,7 @@ fi
merge_base_command="git merge-base $current_branch_hash $MAIN_COMMIT"
merge_base=$(${merge_base_command})
diff_command="git diff --name-only --diff-filter=ACM $current_branch_hash $merge_base"
diff_command="git diff --name-only --diff-filter=ACM $merge_base $current_branch_hash"
diff_files=$(${diff_command})
if [ "$diff_files" = "" ]; then