t5000: extract nongit function to test-lib-functions.sh
authorJeff King <peff@peff.net>
Fri, 16 Dec 2016 02:30:12 +0000 (21:30 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 16 Dec 2016 17:29:16 +0000 (09:29 -0800)
commitde95302a4c0c6c733fb734b5a3d3d54dd54ec674
treede17f1d510101f0e473bd89618fef0a818c76647
parent454cb6bd52a4de614a3633e4f547af03d5c3b640
t5000: extract nongit function to test-lib-functions.sh

This function abstracts the idea of running a command
outside of any repository (which is slightly awkward to do
because even if you make a non-repo directory, git may keep
walking up outside of the trash directory). There are
several scripts that use the same technique, so let's make
the function available for everyone.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5000-tar-tree.sh
t/test-lib-functions.sh