Skip to content

Commit

Permalink
Ask directory of git repository
Browse files Browse the repository at this point in the history
  • Loading branch information
kmnk committed Aug 2, 2012
1 parent 2e4fbf9 commit 0f1f1a3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions autoload/giti.vim
Expand Up @@ -24,8 +24,11 @@ endfunction"}}}

function! giti#system_with_specifics(param)"{{{
if !giti#is_git_repository()
throw 'Not a git repository'
return
echo 'Not a git repository'
echo 'Specify directory of git repository (and change current directory of this window)'
echo 'current : ' . getcwd()
call giti#execute(printf('lcd %s', input('change to: ', getcwd())))
return giti#system_with_specifics(a:param)
endif

let a:param.command = s:trim(a:param.command)
Expand Down

0 comments on commit 0f1f1a3

Please sign in to comment.