diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-06-28 15:21:00 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-06-28 15:21:00 -0700 |
commit | e90020cdb3273af3b0c7915c0aacf16b19bbf994 (patch) | |
tree | 7877275ba126cfe2cea62bfb9f6ec33c3680bf14 /t/t9902-completion.sh | |
parent | a3fbb2350dcd2d843d1d90b663521222aceb25fe (diff) | |
parent | b7be4366ea9af9a6947a8be0ebe6a63ff5259b6a (diff) | |
download | git-e90020cdb3273af3b0c7915c0aacf16b19bbf994.tar.gz |
Merge branch 'fc/git-prompt-script'
Split a rather heavy-ish "git completion" script out to create a
separate "git prompting" script, to help lazy-autoloading of the
completion part while making prompting part always available.
Diffstat (limited to 't/t9902-completion.sh')
-rwxr-xr-x | t/t9902-completion.sh | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh index 256e6a0b3f..92d7eb47c2 100755 --- a/t/t9902-completion.sh +++ b/t/t9902-completion.sh @@ -3,21 +3,9 @@ # Copyright (c) 2012 Felipe Contreras # -if test -n "$BASH" && test -z "$POSIXLY_CORRECT"; then - # we are in full-on bash mode - true -elif type bash >/dev/null 2>&1; then - # execute in full-on bash mode - unset POSIXLY_CORRECT - exec bash "$0" "$@" -else - echo '1..0 #SKIP skipping bash completion tests; bash not available' - exit 0 -fi - test_description='test bash completion' -. ./test-lib.sh +. ./lib-bash.sh complete () { |