files_transaction_finish(): delete reflogs before references
authorMichael Haggerty <mhagger@alum.mit.edu>
Fri, 8 Sep 2017 13:51:53 +0000 (15:51 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Sep 2017 18:18:04 +0000 (03:18 +0900)
commit5e00a6c873981f87165adfecf29ad0ecc2c2c5df
treefaebf75ef8baa550ec5be76ed261bb7f2b68f97a
parent9939b33d6a3900e76b9cf95cbbb30ad8cf38cab3
files_transaction_finish(): delete reflogs before references

If the deletion steps unexpectedly fail, it is less bad to leave a
reference without its reflog than it is to leave a reflog without its
reference, since the latter is an invalid repository state.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/files-backend.c