From b863eca196ecc38937bdf05ef9e6853fe2f046ae Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Thu, 27 Mar 2025 08:57:12 +0000 Subject: [PATCH] fix(scripts/check_unstaged.sh): add argument separator in git diff command (#17122) --- scripts/check_unstaged.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check_unstaged.sh b/scripts/check_unstaged.sh index a6de5f0204..90d4cad87e 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