t: use nongit() function where applicable
commita3c45d126012e01b23edc4923ffddffac61d703b
authorJeff King <peff@peff.net>
Fri, 16 Dec 2016 02:31:59 +0000 (15 21:31 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 16 Dec 2016 17:31:00 +0000 (16 09:31 -0800)
tree6d8d44acd205a6de811a2fba528e72d3a289f8e1
parent7176a31444ce5ed683dbd75d2e1e2f89018d0100
t: use nongit() function where applicable

Many tests want to run a command outside of any git repo;
with the nongit() function this is now a one-liner. It saves
a few lines, but more importantly, it's immediately obvious
what the code is trying to accomplish.

This doesn't convert every such case in the test suite; it
just covers those that want to do a one-off command. Other
cases, such as the ones in t4035, are part of a larger
scheme of outside-repo files, and it's less confusing for
them to stay consistent with the surrounding tests.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1308-config-set.sh
t/t9100-git-svn-basic.sh
t/t9902-completion.sh