Merge branch 'jk/test-lint-forbid-when-finished-in-subshell' into maint
authorJunio C Hamano <gitster@pobox.com>
Fri, 11 Dec 2015 19:14:09 +0000 (11:14 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 11 Dec 2015 19:14:10 +0000 (11:14 -0800)
commit4cb5488fa6cd1dc3cea253e7d8df6bf9d945653b
treed5e6c90ac3e4223be3efed3e39d930971b367094
parentbc497127894ab6ad955d474c72836c03282e6c6f
parent0968f12a99c4ac784b6b7f858003662cfaae117f
Merge branch 'jk/test-lint-forbid-when-finished-in-subshell' into maint

Because "test_when_finished" in our test framework queues the
clean-up tasks to be done in a shell variable, it should not be
used inside a subshell.  Add a mechanism to allow 'bash' to catch
such uses, and fix the ones that were found.

* jk/test-lint-forbid-when-finished-in-subshell:
  test-lib-functions: detect test_when_finished in subshell
  t7800: don't use test_config in a subshell
  test-lib-functions: support "test_config -C <dir> ..."
  t5801: don't use test_when_finished in a subshell
  t7610: don't use test_config in a subshell
t/t7800-difftool.sh