Merge branch 'nd/clone-linked-checkout' into maint
commit4349f597f08b6dc50fc6198b8e1b96e19df37c65
authorJunio C Hamano <gitster@pobox.com>
Thu, 5 Nov 2015 20:18:07 +0000 (5 12:18 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 5 Nov 2015 20:18:08 +0000 (5 12:18 -0800)
treecda184215e2f3e14bb4d9871af0df367ea0ea01f
parent53be145209eeac5972d4ea4374d667fdf594f78f
parentd78db8424ec5c3f3327441cd1a897064af39da91
Merge branch 'nd/clone-linked-checkout' into maint

It was not possible to use a repository-lookalike created by "git
worktree add" as a local source of "git clone".

* nd/clone-linked-checkout:
  clone: better error when --reference is a linked checkout
  clone: allow --local from a linked checkout
  enter_repo: allow .git files in strict mode
  enter_repo: avoid duplicating logic, use is_git_directory() instead
  t0002: add test for enter_repo(), non-strict mode
  path.c: delete an extra space
builtin/clone.c
path.c