Skip to content

Commit

Permalink
[[B]Commits] Add support for files in submodules (#919)
Browse files Browse the repository at this point in the history
  • Loading branch information
matawed authored and junegunn committed Jan 14, 2020
1 parent 8a6894d commit 360f7f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/fzf/vim.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1104,8 +1104,8 @@ function! s:commits(buffer_local, args)
if empty(s:git_root)
return s:warn('Not in git repository')
endif

let source = 'git log '.get(g:, 'fzf_commits_log_options', '--color=always '.fzf#shellescape('--format=%C(auto)%h%d %s %C(green)%cr'))
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 current = expand('%')
let managed = 0
if !empty(current)
Expand Down

0 comments on commit 360f7f3

Please sign in to comment.