From: Johannes Sixt Date: Mon, 24 Oct 2016 19:22:34 GMT Subject: Re: [PATCH v2 2/2] read-cache: make sure file handles are not inherited by child processes Message-ID: <10135d1c-d9a7-d4ec-438a-bb0a8f6762fe@kdbg.org> In-Reply-To: <20161024180300.52359-3-larsxschneider@gmail.com> Am 24.10.2016 um 20:03 schrieb larsxschneider@gmail.com: > From: Lars Schneider > > This fixes "convert: add filter..process option" (edcc8581) on > Windows. Today's next falls flat on its face on Windows in t0021.15 "required process filter should filter data"; might it be the failure meant here? (I haven't dug deeper, yet.) ++ test_config_global filter.protocol.process '/d/Src/mingw-git/t/t0021/rot13-filter.pl clean smudge' ++ test_when_finished 'test_unconfig --global '\''filter.protocol.process'\''' ++ test 0 = 0 ++ test_cleanup='{ test_unconfig --global '\''filter.protocol.process'\'' } && (exit "$eval_ret"); eval_ret=$?; :' ++ git config --global filter.protocol.process '/d/Src/mingw-git/t/t0021/rot13-filter.pl clean smudge' ++ test_config_global filter.protocol.required true ++ test_when_finished 'test_unconfig --global '\''filter.protocol.required'\''' ++ test 0 = 0 ++ test_cleanup='{ test_unconfig --global '\''filter.protocol.required'\'' } && (exit "$eval_ret"); eval_ret=$?; { test_unconfig --global '\''filter.protocol.process'\'' } && (exit "$eval_ret"); eval_ret=$?; :' ++ git config --global filter.protocol.required true ++ rm -rf repo ++ mkdir repo ++ cd repo ++ git init Initialized empty Git repository in d:/Src/mingw-git/t/trash directory.t0021-conversion/repo/.git/ ++ echo git-stderr.log ++ echo '*.r filter=protocol' ++ git add . ++ git commit . -m 'test commit 1' [master (root-commit) aa5dd37] test commit 1 Author: A U Thor 2 files changed, 2 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore ++ git branch empty-branch ++ cp 'd:/Src/mingw-git/t/trash directory.t0021-conversion/test.o' test.r ++ cp 'd:/Src/mingw-git/t/trash directory.t0021-conversion/test2.o' test2.r ++ mkdir testsubdir ++ cp 'd:/Src/mingw-git/t/trash directory.t0021-conversion/test3 '\''sq'\'',$x.o' 'testsubdir/test3 '\''sq'\'',$x.r' +++ file_size test.r +++ cat test.r +++ wc -c +++ sed 's/^[ ]*//' ++ S=57 +++ file_size test2.r +++ cat test2.r +++ wc -c +++ sed 's/^[ ]*//' ++ S2=14 +++ file_size 'testsubdir/test3 '\''sq'\'',$x.r' +++ cat 'testsubdir/test3 '\''sq'\'',$x.r' +++ wc -c +++ sed 's/^[ ]*//' ++ S3=49 ++ filter_git add . ++ rm -f rot13-filter.log ++ git add . error: last command exited with $?=128 not ok 15 - required process filter should filter data