{"thread":{"id":"3444","subject":"fix t5600-clone-fail-cleanup.sh on windows","startedAt":"2006-02-23T11:25:20Z","lastAt":"2006-02-23T11:25:20Z","messageCount":1,"participants":["Alex Riesen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"16612","messageId":"81b0412b0602230325l309ab68fi900deb5fd3c77ffd@mail.gmail.com","threadId":"3444","inReplyTo":null,"subject":"fix t5600-clone-fail-cleanup.sh on windows","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2006-02-23T11:25:20Z","receivedAt":"2006-02-23T11:25:20Z","isPatch":false,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"In windows you cannot remove current or opened directory,\nan opened file, a running program, a loaded library, etc...\n\n---\nI still wonder how they managed to survive...\n\n\n>From nobody Mon Sep 17 00:00:00 2001\nFrom: Alex Riesen <raa.lkml@gmail.com>\nDate: Thu Feb 23 11:49:31 2006 +0100\nSubject: [PATCH] fix t5600-clone-fail-cleanup.sh on windows\n\n---\n\n git-clone.sh |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\n3453c0df0d815580c5e7aaeb67bfc54b5b0954c6\ndiff --git a/git-clone.sh b/git-clone.sh\nindex dc0ad55..0c60e0b 100755\n--- a/git-clone.sh\n+++ b/git-clone.sh\n@@ -118,7 +118,7 @@ dir=\"$2\"\n [ -e \"$dir\" ] && echo \"$dir already exists.\" && usage\n mkdir -p \"$dir\" &&\n D=$(cd \"$dir\" && pwd) &&\n-trap 'err=$?; rm -r $D; exit $err' exit\n+trap 'err=$?; cd ..; rm -r $D; exit $err' exit\n case \"$bare\" in\n yes) GIT_DIR=\"$D\" ;;\n *) GIT_DIR=\"$D/.git\" ;;\n-- \n1.2.3.g6ae0e\n\n"}]}