Merge branch 'nd/worktree-name-sanitization'
authorJunio C Hamano <gitster@pobox.com>
Thu, 13 Jun 2019 20:19:40 +0000 (13:19 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 13 Jun 2019 20:19:40 +0000 (13:19 -0700)
commit0d107b19890db191c9281bff67180389fb53df24
treed61a6fbd1e41b07107b7a686402c92f5283f7670
parent66dc7b68e4a332c662980b0266b9a1cb545f40ff
parent1de16aecf51daf5794aa074f6dd133e088a12690
Merge branch 'nd/worktree-name-sanitization'

In recent versions of Git, per-worktree refs are exposed in
refs/worktrees/<wtname>/ hierarchy, which means that worktree names
must be a valid refname component.  The code now sanitizes the names
given to worktrees, to make sure these refs are well-formed.

* nd/worktree-name-sanitization:
  worktree add: sanitize worktree names
builtin/worktree.c
refs.c
refs.h