Commit 0a3741e7 authored by Nikola Dinev's avatar Nikola Dinev Committed by David Frank
Browse files

Ignore missing or deleted files during format check

parent 33489ea5
......@@ -23,7 +23,7 @@ if [[ "$master_ahead" -gt "0" ]]; then
echo -e "[${ORANGE}WARNING${NC}]: Not all commits which are part of origin/master are part of your branch, maybe you need to rebase?"
files=($(git diff origin/master --name-only | egrep ".+\.(h|hpp|cpp|cu|cuh)$"))
files=($(git diff origin/master --name-only --diff-filter=d | egrep ".+\.(h|hpp|cpp|cu|cuh)$"))
if (( ${#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