summaryrefslogtreecommitdiff
path: root/shell.c
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2017-01-06 17:22:28 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-01-07 19:30:09 -0800
commit3b5d3c9848aaa6e15d814730cfac0efe3257eb46 (patch)
tree5ba2f278ce32e13478ecf96b0534b9cb359a5951 /shell.c
parentlock_ref_sha1_basic(): inline constant (diff)
downloadtgif-3b5d3c9848aaa6e15d814730cfac0efe3257eb46.tar.xz
lock_ref_sha1_basic(): use raceproof_create_file()
Instead of coding the retry loop inline, use raceproof_create_file() to make lock acquisition safe against directory creation/deletion races. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'shell.c')
0 files changed, 0 insertions, 0 deletions