{"thread":{"id":"22757","subject":"[PATCH] am: remove rebase-apply directory before gc","startedAt":"2010-02-22T14:35:46Z","lastAt":"2010-02-22T14:35:46Z","messageCount":1,"participants":["Jonathan Nieder"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"135313","messageId":"20100222143545.GA4791@progeny.tock","threadId":"22757","inReplyTo":"20100222140911.30949.49607.reportbug@rakim.wolfsonmicro.main","subject":"[PATCH] am: remove rebase-apply directory before gc","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2010-02-22T14:35:46Z","receivedAt":"2010-02-22T14:35:46Z","isPatch":true,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"When git am does an automatic gc it doesn't clean up the rebase-apply\ndirectory until after this has finished.  This means that if the user\naborts the gc then future am or rebase operations will report that an\nexisting operation is in progress, which is undesirable and confusing.\n\nReported by Mark Brown <broonie@debian.org> through\nhttp://bugs.debian.org/570966\n\nSigned-off-by: Jonathan Nieder <jrnieder@gmail.com>\n---\n git-am.sh |    3 +--\n 1 files changed, 1 insertions(+), 2 deletions(-)\n\ndiff --git a/git-am.sh b/git-am.sh\nindex 3c08d53..ebfbee5 100755\n--- a/git-am.sh\n+++ b/git-am.sh\n@@ -776,6 +776,5 @@ do\n \tgo_next\n done\n \n-git gc --auto\n-\n rm -fr \"$dotest\"\n+git gc --auto\n-- \n1.7.0\n"}]}