3 # Copyright (c) 2005 Johannes Schindelin
6 # Test that the current fetch-pack/upload-pack plays nicely with
9 cd $(dirname $0) || exit 1
10 : ${SHELL_PATH=/bin/sh}
24 fetch) pgm="old-git-fetch-pack"; replace="$pgm";;
25 upload) pgm="old-git-upload-pack"; replace="git-fetch-pack --exec=$pgm";;
26 both) pgm="old-git-upload-pack"; replace="old-git-fetch-pack --exec=$pgm";;
29 if where=`LANG=C LC_ALL=C which "$pgm" 2>/dev/null` &&
34 echo "Testing with $pgm"
35 sed -e "s/git-fetch-pack/$replace/g" \
36 -e "s/# old fails/warn/" < t5500-fetch-pack.sh > $tmp
38 "$SHELL_PATH" "$tmp" || retval=$?
41 test $retval != 0 && exit $retval
43 echo "Skipping test for $i, since I cannot find $pgm"