From: René Scharfe Date: Mon, 20 May 2013 09:58:25 +0000 (+0200) Subject: t5000, t5003: create directories for extracted files lazily X-Git-Tag: v1.8.3.4~31^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1355241bf58b325ec9bedc2768d28dd20355c50e;p=thirdparty%2Fgit.git t5000, t5003: create directories for extracted files lazily Create the directories b and c just before they are needed instead of up front. For t5003 it turns out we don't need them at all. For t5000 it makes the coming modifications easier. Signed-off-by: René Scharfe Signed-off-by: Junio C Hamano --- diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh index 68b5698d29..41cd6094ac 100755 --- a/t/t5000-tar-tree.sh +++ b/t/t5000-tar-tree.sh @@ -32,7 +32,7 @@ SUBSTFORMAT=%H%n test_expect_success \ 'populate workdir' \ - 'mkdir a b c && + 'mkdir a && echo simple textfile >a/a && mkdir a/bin && cp /bin/sh a/bin && @@ -126,7 +126,7 @@ test_expect_success \ test_expect_success \ 'extract tar archive' \ - '(cd b && "$TAR" xf -) a/a && mkdir a/bin && cp /bin/sh a/bin &&