]> git.ipfire.org Git - thirdparty/git.git/commit - t/t9902-completion.sh
completion tests: check __gitdir()'s output in the error cases
authorSZEDER Gábor <szeder.dev@gmail.com>
Fri, 3 Feb 2017 02:48:13 +0000 (03:48 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 4 Feb 2017 06:18:40 +0000 (22:18 -0800)
commit8f0fa85d4d21b67f80d408dd75b35623d829511e
tree2a33105345ccf97332961fc2f85421b4ec442fcb
parentf6114408113af39a18b21693c3a83600e06e5475
completion tests: check __gitdir()'s output in the error cases

The __gitdir() helper function shouldn't output anything if not in a
git repository.  The relevant tests only checked its error code, so
extend them to ensure that there's no output.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9902-completion.sh