summaryrefslogtreecommitdiff
path: root/git-pull.sh
diff options
context:
space:
mode:
authorLibravatar Steven Walter <stevenrwalter@gmail.com>2013-03-17 10:09:27 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-03-26 21:07:42 -0700
commit928734d99370e2478e3b3881e5b0aa79745ac27c (patch)
tree02fc0e4df6299e6a0ad5899da422742469bd3444 /git-pull.sh
parentGit 1.7.12.4 (diff)
downloadtgif-928734d99370e2478e3b3881e5b0aa79745ac27c.tar.xz
safe_create_leading_directories: fix race that could give a false negative
If two processes are racing to create the same directory tree, they will both see that the directory doesn't exist, both try to mkdir(), and one of them will fail. This is okay, as we only care that the directory gets created. So, we add a check for EEXIST from mkdir, and continue when the directory exists, taking the same codepath as the case where the earlier stat() succeeds and finds a directory. Signed-off-by: Steven Walter <stevenrwalter@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-pull.sh')
0 files changed, 0 insertions, 0 deletions