diff options
-rw-r--r-- | contrib/completion/git-completion.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index f9e8e7dae5..20c971875d 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -255,7 +255,7 @@ __gitcomp_file () __gitcompadd "$1" "${2-}" "${3-$cur}" "" # use a hack to enable file mode in bash < 4 - compopt -o filenames 2>/dev/null || + compopt -o filenames +o nospace 2>/dev/null || compgen -f /non-existing-dir/ > /dev/null } |