aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2010-12-13 03:28:05 -0600
committerJunio C Hamano <gitster@pobox.com>2010-12-19 13:51:09 -0800
commit4de0bbd8985ea057050994c5b254c9ef3d845c1e (patch)
tree6707c25e955164a7930d15818dd52b825434fe7e /contrib
parent834d9eb6b70a3447c2ad514f9c0e052bc43e8c8a (diff)
downloadgit-4de0bbd8985ea057050994c5b254c9ef3d845c1e.tar.gz
git-4de0bbd8985ea057050994c5b254c9ef3d845c1e.tar.xz
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>
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions