Skip to contentSkip to conversation

am: remove rebase-apply directory before gc

PATCH New Jonathan Nieder 1 participant 1 message Jun 15, 2016 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 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 <[email protected]> through
http://bugs.debian.org/570966

---
 git-am.sh |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
git-am.sh +1 -2
index 3c08d53..ebfbee5 100755
@@ -776,6 +776,5 @@ do
 	go_next
 done
 
-git gc --auto
-
 rm -fr "$dotest"
+git gc --auto
Signature · 1 line
1.7.0