Revert "[[B]Commits] Add support for files in submodules (#919)"

This reverts commit 360f7f36da.
This commit is contained in:
Junegunn Choi
2020-01-14 10:37:57 +09:00
parent 360f7f36da
commit 6eeeab64a8

View File

@@ -1104,8 +1104,8 @@ function! s:commits(buffer_local, args)
if empty(s:git_root)
return s:warn('Not in git repository')
endif
let path = expand('%:p:h')
let source = 'git -C '.fzf#shellescape(path).' log '.get(g:, 'fzf_commits_log_options', '--color=always '.fzf#shellescape('--format=%C(auto)%h%d %s %C(green)%cr'))
let source = 'git log '.get(g:, 'fzf_commits_log_options', '--color=always '.fzf#shellescape('--format=%C(auto)%h%d %s %C(green)%cr'))
let current = expand('%')
let managed = 0
if !empty(current)