3 # Copyright (c) 2005 Johannes Schindelin
6 # Test that the current fetch-pack/upload-pack plays nicely with
9 cd $(dirname $0) || exit 1
11 tmp=$(mktemp /tmp/tmp-XXXXXXXX)
23 fetch) pgm="old-git-fetch-pack"; replace="$pgm";;
24 upload) pgm="old-git-upload-pack"; replace="git-fetch-pack --exec=$pgm";;
25 both) pgm="old-git-upload-pack"; replace="old-git-fetch-pack --exec=$pgm";;
28 if which $pgm 2>/dev/null; then
29 echo "Testing with $pgm"
30 sed -e "s/git-fetch-pack/$replace/g" \
31 -e "s/# old fails/warn/" < t5500-fetch-pack.sh > $tmp
36 test $retval != 0 && exit $retval
38 echo "Skipping test for $i, since I cannot find $pgm"