summaryrefslogtreecommitdiff
path: root/sha1-array.c
diff options
context:
space:
mode:
authorLibravatar Michal Suchanek <msuchanek@suse.de>2019-02-20 17:16:48 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-03-12 15:56:11 +0900
commit7af01f23678dbaeed37773e37737f2ef3db1cb49 (patch)
treea2f1c5b36ad282814b077e8e04009e54e1ad800a /sha1-array.c
parentMerge tag 'l10n-2.21.0-rnd2.1' of git://github.com/git-l10n/git-po (diff)
downloadtgif-7af01f23678dbaeed37773e37737f2ef3db1cb49.tar.xz
worktree: fix worktree add race
Git runs a stat loop to find a worktree name that's available and then does mkdir on the found name. Turn it to mkdir loop to avoid another invocation of worktree add finding the same free name and creating the directory first. Signed-off-by: Michal Suchanek <msuchanek@suse.de> Acked-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1-array.c')
0 files changed, 0 insertions, 0 deletions