Merge branch 'jk/gc-pre-detach-under-hook' into maint
authorJunio C Hamano <gitster@pobox.com>
Mon, 31 Jul 2017 20:51:05 +0000 (13:51 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 31 Jul 2017 20:51:05 +0000 (13:51 -0700)
commit133578a020ac5449d36cea741cfc1e7acd7f93a8
treed1594e7add0085de89c382e7b1567c16d13d3583
parent309ff914d5ae1cdc95c826f7ac45b859e1d43d67
parentc45af94dbc960cbb46ac482ec9cb7f73f55ea270
Merge branch 'jk/gc-pre-detach-under-hook' into maint

We run an early part of "git gc" that deals with refs before
daemonising (and not under lock) even when running a background
auto-gc, which caused multiple gc processes attempting to run the
early part at the same time.  This is now prevented by running the
early part also under the GC lock.

* jk/gc-pre-detach-under-hook:
  gc: run pre-detach operations under lock