Commit 9e81c4cc by Robert Raposa

Merge pull request #12511 from edx/andya/exclude-deletions-from-safe-commit-linting

Exclude deleted files from safe template linting
parents 6eb2e184 a7e754dd
......@@ -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
......
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