From: caleb@calebthompson.io Date: Wed, 11 Jun 2014 18:24:37 GMT Subject: [PATCH v4 2/4] commit test: Use write_script Message-ID: <1402511079-17735-3-git-send-email-caleb@calebthompson.io> In-Reply-To: <1402511079-17735-1-git-send-email-caleb@calebthompson.io> Use write_script from t/test-lib-functions.sh instead of cat, shebang, and chmod. This protects us from potential shell meta-characters in the name of our trash directory, which would be interpreted if we set $EDITOR directly. Signed-off-by: Caleb Thompson --- t/t7507-commit-verbose.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/t/t7507-commit-verbose.sh b/t/t7507-commit-verbose.sh index 6d778ed..db09107 100755 --- a/t/t7507-commit-verbose.sh +++ b/t/t7507-commit-verbose.sh @@ -3,11 +3,9 @@ test_description='verbose commit template' . ./test-lib.sh -cat >check-for-diff <message <<'EOF' -- 2.0.0