Merge branch 'jt/submodule-repo-is-with-worktree'
authorJunio C Hamano <gitster@pobox.com>
Wed, 8 May 2019 15:37:28 +0000 (00:37 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 May 2019 15:37:28 +0000 (00:37 +0900)
The logic to tell if a Git repository has a working tree protects
"git branch -D" from removing the branch that is currently checked
out by mistake. The implementation of this logic was broken for
repositories with unusual name, which unfortunately is the norm for
submodules these days. This has been fixed.

* jt/submodule-repo-is-with-worktree:
worktree: update is_bare heuristics

1  2 
worktree.c
diff --cc worktree.c
Simple merge