motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit dcf32d2b3d0bb1abe2e46041adb48b13ba328332 (tree)
parent 0fd64f8fbfa7eda26a7dcc7d3102843edbe2324d
Author: Tim Pope <code@tpope.net>
Date:   Sat, 27 Oct 2018 18:22:04 -0400

Clearer errors

Diffstat:
Mautoload/fugitive.vim | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -376,7 +376,7 @@ function! fugitive#repo(...) abort endif return extend(repo, s:repo_prototype, 'keep') endif - call s:throw('not a git repository: '.expand('%:p')) + call s:throw('not a Git repository: ' . string(dir)) endfunction function! s:repo_dir(...) dict abort @@ -1098,7 +1098,7 @@ function! fugitive#buffer(...) abort if buffer.getvar('git_dir') !=# '' return buffer endif - call s:throw('not a git repository: '.bufname(buffer['#'])) + call s:throw('not a Fugitive buffer: ' . string(bufname(buffer['#']))) endfunction function! s:buffer_getvar(var) dict abort