[PATCH 0/1] Fix for mh/packed-ref-store-prep
- From
Michael Haggerty <mhagger@alum.mit.edu>
- Date
- Jun 12, 2017, 08:06 UTC
- Message-ID
- <cover.1497253685.git.mhagger@alum.mit.edu>
When preparing a new patch series, I noticed a bug that crept into mh/packed-ref-store-prep while I was shuffling patches around. It introduces a race condition if another process rewrites the `packed-refs` file just before we lock it. See the commit message for more information.
This patch applies on top of mh/packed-ref-store-prep and merges to master without problems.
Michael
Michael Haggerty (1): lock_packed_refs(): fix cache validity check
refs/files-backend.c | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-)
-- 2.11.0