diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2009-03-11 17:58:32 +0100 |
---|---|---|
committer | Johannes Sixt <j6t@kdbg.org> | 2009-03-19 21:47:14 +0100 |
commit | e2c2407683bf51c30004d2804623f2eb8e831b7a (patch) | |
tree | 25e880222039bf022b83e46c6e124d5e4a82034e /t | |
parent | 1f553918a8482ea792e8cd4d5d2c75fe60f68aae (diff) | |
download | git-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-x | t/t7300-clean.sh | 6 |
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 |