t0061: run_command executes scripts without a #! line
commitc2d3119d7bb2122a715d2adac1574514aeff7723
authorBrandon Williams <bmwill@google.com>
Wed, 19 Apr 2017 23:13:18 +0000 (19 16:13 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Apr 2017 00:55:32 +0000 (20 17:55 -0700)
tree71827fd722a1aa5ba0bd71f019d09c83ce78c3da
parent1fd1a919ce9135a34866d5d13aed5312ea5e07f1
t0061: run_command executes scripts without a #! line

Add a test to 't0061-run-command.sh' to ensure that run_command can
continue to execute scripts which don't include a '#!' line.

As shell scripts are not natively executable on Windows, we use a
workaround to check "#!" when running scripts from Git.  As this
test requires the platform (not with Git's help) to run scripts
without "#!", skipt it on Windows.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0061-run-command.sh