From: Jonathan Nieder Date: Mon, 22 Feb 2010 14:35:46 +0000 (-0600) Subject: am: remove rebase-apply directory before gc X-Git-Tag: v1.7.0.1~6 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/29b67543d3060a08bee601dbad91dd400e833052?ds=sidebyside am: remove rebase-apply directory before gc When git am does an automatic gc it doesn't clean up the rebase-apply directory until after this has finished. This means that if the user aborts the gc then future am or rebase operations will report that an existing operation is in progress, which is undesirable and confusing. Reported by Mark Brown through http://bugs.debian.org/570966 Signed-off-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- diff --git a/git-am.sh b/git-am.sh index 3c08d53161..ebfbee59d3 100755 --- a/git-am.sh +++ b/git-am.sh @@ -776,6 +776,5 @@ do go_next done -git gc --auto - rm -fr "$dotest" +git gc --auto