Skip to content

Commit 9380aed

Browse files
Johannes Sixtgitster
authored andcommitted
t4006: Windows do not have /dev/zero
We only need to have a file with _some_ binary contents; be nice to our Windows friends and avoid using /dev/zero Signed-off-by: Johannes Sixt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 352ca4e commit 9380aed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t4006-diff-mode.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ test_expect_success 'chmod' '
2727

2828
test_expect_success 'prepare binary file' '
2929
git commit -m rezrov &&
30-
dd if=/dev/zero of=binbin bs=1024 count=1 &&
30+
printf "\00\01\02\03\04\05\06" >binbin &&
3131
git add binbin &&
3232
git commit -m binbin
3333
'

0 commit comments

Comments
 (0)