Merge branch 'jk/gc-pre-detach-under-hook'
commit764046f6b0ea8480ef7f79dd2b9c48cab0c32d22
authorJunio C Hamano <gitster@pobox.com>
Tue, 18 Jul 2017 19:48:10 +0000 (18 12:48 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Jul 2017 19:48:10 +0000 (18 12:48 -0700)
tree93ed2ebca9705953bfee7f6238c93463893a880a
parent11157492230874c0c2f36481e75f08406c4ed6e7
parentc45af94dbc960cbb46ac482ec9cb7f73f55ea270
Merge branch 'jk/gc-pre-detach-under-hook'

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
builtin/gc.c