From 5dd1a7e83966c92d220073185f1738dfe441f59e Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 2 May 2016 10:42:37 +0200 Subject: Update --- ftplugin/git.vim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ftplugin/git.vim') diff --git a/ftplugin/git.vim b/ftplugin/git.vim index 444d7562..38b9493b 100644 --- a/ftplugin/git.vim +++ b/ftplugin/git.vim @@ -14,6 +14,8 @@ let b:did_ftplugin = 1 if !exists('b:git_dir') if expand('%:p') =~# '[\/]\.git[\/]modules[\/]' " Stay out of the way + elseif expand('%:p') =~# '[\/]\.git[\/]worktrees' + let b:git_dir = matchstr(expand('%:p'),'.*\.git[\/]worktrees[\/][^\/]\+\>') elseif expand('%:p') =~# '\.git\>' let b:git_dir = matchstr(expand('%:p'),'.*\.git\>') elseif $GIT_DIR != '' -- cgit v1.2.3