From 36c0da6dfed1587748c5baff47d5dabe03e9b129 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Wed, 26 Mar 2025 21:37:41 +0000 Subject: [PATCH] fix(scripts/check_unstaged.sh): add argument separator in git diff command --- 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 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