From: Junio C Hamano Date: Sun, 30 Jun 2013 22:39:47 +0000 (-0700) Subject: Merge branch 'mh/loose-refs-race-with-pack-ref' X-Git-Tag: v1.8.4-rc0~105 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/d1314826935392d38e3bb2df754762a402d0af00 Merge branch 'mh/loose-refs-race-with-pack-ref' We read loose and packed rerferences in two steps, but after deciding to read a loose ref but before actually opening it to read it, another process racing with us can unlink it, which would cause us to barf. Update the codepath to retry when such a race is detected. * mh/loose-refs-race-with-pack-ref: resolve_ref_unsafe(): close race condition reading loose refs resolve_ref_unsafe(): handle the case of an SHA-1 within loop resolve_ref_unsafe(): extract function handle_missing_loose_ref() --- d1314826935392d38e3bb2df754762a402d0af00