diff --git a/scripts/check_unstaged.sh b/scripts/check_unstaged.sh index a6de5f0204ef8..90d4cad87e4fc 100755 --- a/scripts/check_unstaged.sh +++ b/scripts/check_unstaged.sh @@ -20,7 +20,7 @@ if [[ "$FILES" != "" ]]; then log "These are the changes:" log for file in "${files[@]}"; do - git --no-pager diff "$file" 1>&2 + git --no-pager diff -- "$file" 1>&2 done log