projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
352ca4e
)
t4006: Windows do not have /dev/zero
author
Johannes Sixt
<j.sixt@viscovery.net>
Wed, 2 May 2012 07:36:44 +0000
(09:36 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 2 May 2012 16:46:41 +0000
(09:46 -0700)
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 <j.sixt@viscovery.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4006-diff-mode.sh
patch
|
blob
|
history
diff --git
a/t/t4006-diff-mode.sh
b/t/t4006-diff-mode.sh
index 693bfc4a521825e4c2c4267f8ba7e36aae2e7033..7a3e1f9a24e4be3759c29acc632fc461ede2b74b 100755
(executable)
--- a/
t/t4006-diff-mode.sh
+++ b/
t/t4006-diff-mode.sh
@@
-27,7
+27,7
@@
test_expect_success 'chmod' '
test_expect_success 'prepare binary file' '
git commit -m rezrov &&
-
dd if=/dev/zero of=binbin bs=1024 count=1
&&
+
printf "\00\01\02\03\04\05\06" >binbin
&&
git add binbin &&
git commit -m binbin
'