Skip to content

Commit

Permalink
Integrating rhysd's annotation, reword error
Browse files Browse the repository at this point in the history
  • Loading branch information
rbialon committed Feb 23, 2018
1 parent 8c0e506 commit 8c47bb2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autoload/committia/git.vim
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ endfunction
function! s:search_git_dir_and_work_tree() abort
" Use environment variables if set
if !empty($GIT_DIR) && !empty($GIT_WORK_TREE)
if !isdirectory($GIT_WORK_TREE)
throw 'Directory specified with $GIT_WORK_TREE does not exist: ' . $GIT_WORK_TREE
endif
return [$GIT_DIR, $GIT_WORK_TREE]
endif

Expand Down

0 comments on commit 8c47bb2

Please sign in to comment.