author | Jonathan Nieder <jrnieder@gmail.com> | |
Mon, 13 Dec 2010 09:28:05 +0000 (03:28 -0600) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 19 Dec 2010 21:51:09 +0000 (13:51 -0800) | ||
commit | 4de0bbd8985ea057050994c5b254c9ef3d845c1e | |
tree | 6707c25e955164a7930d15818dd52b825434fe7e | tree | snapshot |
parent | 834d9eb6b70a3447c2ad514f9c0e052bc43e8c8a | commit | diff |
t9300: use perl "head -c" clone in place of "dd bs=1 count=16000" kluge
It is unfortunate to have to issue thousands of one-byte read calls to
work around dd's refusal to buffer input that would fill a block after
a short read (a3a6f4, 2010-12-13). We could do better by using
"head -c", if it were available on all platforms we cared about.
Replace it with some simple perl.
While doing so, restructure 9300.114 to use a subshell instead of a
script. Subshells can inherit functions (like the new head_c) from
the parent shell while external scripts cannot.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
It is unfortunate to have to issue thousands of one-byte read calls to
work around dd's refusal to buffer input that would fill a block after
a short read (a3a6f4, 2010-12-13). We could do better by using
"head -c", if it were available on all platforms we cared about.
Replace it with some simple perl.
While doing so, restructure 9300.114 to use a subshell instead of a
script. Subshells can inherit functions (like the new head_c) from
the parent shell while external scripts cannot.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9300-fast-import.sh | diff | blob | history |