diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-02-19 10:21:53 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-02-19 10:21:53 +0100 |
commit | ecd413fb972c54b0967e3822ec3a7d0ab2e90bf0 (patch) | |
tree | 13b73da2584b315ee2d64877cf78df89e5abd1a1 /etc/completions/__git_files | |
parent | bf1177d83e948afe8f23ae04fda222d1bbf94ace (diff) |
__git_files: Silently fail if no gitdir was found
Diffstat (limited to 'etc/completions/__git_files')
-rw-r--r-- | etc/completions/__git_files | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/etc/completions/__git_files b/etc/completions/__git_files index 88e9d1b..8db7d24 100644 --- a/etc/completions/__git_files +++ b/etc/completions/__git_files @@ -13,8 +13,7 @@ files=(${(ps:\0:)"$(cd $gitdir/..; _call_program files git ls-files -z $ls_opts __git_command_successful || return if [[ -z $gitdir ]] { - echo "wtf: $gitdir" - return + return 1 } if [[ ! -d .git ]] { |