Merge branch 'jh/close-index-before-stat' into maint
commitf24e079cb6ecaa217e593c2d2620187044ba1b0d
authorJunio C Hamano <gitster@pobox.com>
Tue, 13 Jun 2017 20:27:02 +0000 (13 13:27 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Jun 2017 20:27:02 +0000 (13 13:27 -0700)
tree4e3e3017dd1714a07f58e1774e1d3bf6f870e36e
parentf4683b4e9cad5e0077fe0a067b15f69c828581bb
parent9f41c7a6b3e3cc3ac4a739364400393fa2492880
Merge branch 'jh/close-index-before-stat' into maint

The timestamp of the index file is now taken after the file is
closed, to help Windows, on which a stale timestamp is reported by
fstat() on a file that is opened for writing and data was written
but not yet closed.

* jh/close-index-before-stat:
  read-cache: close index.lock in do_write_index
read-cache.c