From 1355241bf58b325ec9bedc2768d28dd20355c50e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Scharfe?= Date: Mon, 20 May 2013 11:58:25 +0200 Subject: t5000, t5003: create directories for extracted files lazily MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 68b5698..41cd609 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 && -- cgit v0.10.2-6-g49f6