Merge branch 'jn/scripts-updates'

* jn/scripts-updates:
  remove #!interpreter line from shell libraries
  test: replace shebangs with descriptions in shell libraries
  test: make FILEMODE a lazy prereq
  contrib: remove git-p4import
  mark contributed hooks executable
  mark perl test scripts executable
  mark Windows build scripts executable
This commit is contained in:
Junio C Hamano
2013-12-12 14:22:59 -08:00
53 changed files with 87 additions and 600 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
# Test framework for git. See t/README for usage.
#
# Copyright (c) 2005 Junio C Hamano
#
@ -577,11 +577,9 @@ then
make_valgrind_symlink () {
# handle only executables, unless they are shell libraries that
# need to be in the exec-path. We will just use "#!" as a
# guess for a shell-script, since we have no idea what the user
# may have configured as the shell path.
# need to be in the exec-path.
test -x "$1" ||
test "#!" = "$(head -c 2 <"$1")" ||
test "# " = "$(head -c 2 <"$1")" ||
return;
base=$(basename "$1")
@ -834,6 +832,10 @@ test_lazy_prereq SYMLINKS '
ln -s x y && test -h y
'
test_lazy_prereq FILEMODE '
test "$(git config --bool core.filemode)" = true
'
test_lazy_prereq CASE_INSENSITIVE_FS '
echo good >CamelCase &&
echo bad >camelcase &&