Skip to content

Commit b863eca

Browse files
authored
fix(scripts/check_unstaged.sh): add argument separator in git diff command (coder#17122)
1 parent 2dc99c8 commit b863eca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/check_unstaged.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if [[ "$FILES" != "" ]]; then
2020
log "These are the changes:"
2121
log
2222
for file in "${files[@]}"; do
23-
git --no-pager diff "$file" 1>&2
23+
git --no-pager diff -- "$file" 1>&2
2424
done
2525

2626
log

0 commit comments

Comments
 (0)