aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/commit-graph.c
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2019-02-20 17:16:48 +0100
committerJunio C Hamano <gitster@pobox.com>2019-03-12 15:56:11 +0900
commit7af01f23678dbaeed37773e37737f2ef3db1cb49 (patch)
treea2f1c5b36ad282814b077e8e04009e54e1ad800a /builtin/commit-graph.c
parentMerge tag 'l10n-2.21.0-rnd2.1' of git://github.com/git-l10n/git-po (diff)
downloadgit-7af01f23678dbaeed37773e37737f2ef3db1cb49.tar.gz
git-7af01f23678dbaeed37773e37737f2ef3db1cb49.zip
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 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions