summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2009-03-11 17:58:32 +0100
committerJohannes Sixt <j6t@kdbg.org>2009-03-19 21:47:14 +0100
commite2c2407683bf51c30004d2804623f2eb8e831b7a (patch)
tree25e880222039bf022b83e46c6e124d5e4a82034e /t
parent1f553918a8482ea792e8cd4d5d2c75fe60f68aae (diff)
downloadgit-e2c2407683bf51c30004d2804623f2eb8e831b7a.tar.gz
t7300: fix clean up on Windows
On Windows, you cannot remove files that are in use, not even with 'rm -rf'. So we need to run 'exec <foo/bar' inside a subshell lest removing the whole test repository fail. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Diffstat (limited to 't')
-rwxr-xr-xt/t7300-clean.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh
index 1636fac2a4..929d5d4d3b 100755
--- a/t/t7300-clean.sh
+++ b/t/t7300-clean.sh
@@ -373,9 +373,9 @@ test_expect_success 'removal failure' '
mkdir foo &&
touch foo/bar &&
- exec <foo/bar &&
- chmod 0 foo &&
- test_must_fail git clean -f -d
+ (exec <foo/bar &&
+ chmod 0 foo &&
+ test_must_fail git clean -f -d)
'
chmod 755 foo