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>
This commit is contained in:
committed by
Junio C Hamano
parent
e2a0ccc01f
commit
c7db2d1647
1
t/lib-httpd/broken-smart-http.sh
Executable file → Normal file
1
t/lib-httpd/broken-smart-http.sh
Executable file → Normal file
@ -1,4 +1,3 @@
|
||||
#!/bin/sh
|
||||
printf "Content-Type: text/%s\n" "html"
|
||||
echo
|
||||
printf "%s\n" "001e# service=git-upload-pack"
|
||||
|
||||
Reference in New Issue
Block a user