summaryrefslogtreecommitdiff
path: root/t/lib-httpd
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-05-22 09:28:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-05-23 19:41:50 (GMT)
commitc7db2d16474874b21aad9141e6856f836f719643 (patch)
treef24028c4fd5cdbd30b4471c12cad1faf6edceac3 /t/lib-httpd
parente2a0ccc01fab1770bd3b2767481137c6f728e5ab (diff)
downloadgit-c7db2d16474874b21aad9141e6856f836f719643.zip
git-c7db2d16474874b21aad9141e6856f836f719643.tar.gz
git-c7db2d16474874b21aad9141e6856f836f719643.tar.bz2
t/lib-httpd: use write_script to copy CGI scripts
Using write_script will set our shebang line appropriately with $SHELL_PATH. The script that is there now is quite simple and likely to succeed even with a non-POSIX /bin/sh, but it does not hurt to be defensive. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/lib-httpd')
-rw-r--r--[-rwxr-xr-x]t/lib-httpd/broken-smart-http.sh1
1 files changed, 0 insertions, 1 deletions
diff --git a/t/lib-httpd/broken-smart-http.sh b/t/lib-httpd/broken-smart-http.sh
index f7ebfff..82cc610 100755..100644
--- a/t/lib-httpd/broken-smart-http.sh
+++ b/t/lib-httpd/broken-smart-http.sh
@@ -1,4 +1,3 @@
-#!/bin/sh
printf "Content-Type: text/%s\n" "html"
echo
printf "%s\n" "001e# service=git-upload-pack"