Merge branch 'nd/worktree-add-B'
commit595bfefa6c31fa6d76b686ed79b024838db5933e
authorJunio C Hamano <gitster@pobox.com>
Wed, 24 Feb 2016 21:26:00 +0000 (24 13:26 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Feb 2016 21:26:00 +0000 (24 13:26 -0800)
tree0fdb54fcd57258da1904bcf11ff608a0184c3a36
parent5e57f9c3dfe7dd44a1b56bb5b3327d7a1356ec7c
parentbeb6f24beef67f6f825c8c99e408f67d23b784d4
Merge branch 'nd/worktree-add-B'

"git worktree add -B <branchname>" did not work.

* nd/worktree-add-B:
  worktree add -B: do the checkout test before update branch
  worktree: fix "add -B"