X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=tests%2Fsetup%2Fhttp-git-check;fp=tests%2Fsetup%2Fhttp-git-check;h=0e3b7c25e7c8a9557d19d291df4521ea8fc425e2;hp=0000000000000000000000000000000000000000;hb=f1e434cce41e33122bf4fdab58d8a788b0669a7b;hpb=8c4f1a70c97b0683003ea91cc41d1891f7484201 diff --git a/tests/setup/http-git-check b/tests/setup/http-git-check new file mode 100755 index 00000000..0e3b7c25 --- /dev/null +++ b/tests/setup/http-git-check @@ -0,0 +1,15 @@ +#!/bin/bash +set -e +. tests/lib + +t-dependencies libhttp-server-simple-static-perl + +t-setup-done '' --files-from=/dev/null ' + $troot/http-static-server >$tmp/must-clean/git-check.port $tmp/git + read <$tmp/must-clean/git-check.port git_check_port + + t-git-config --global dgit-distro.test-dummy.git-check url + t-git-config --global dgit-distro.test-dummy.git-check-suffix .git/HEAD + t-git-config --global dgit-distro.test-dummy.git-check-url \ + http://127.0.0.1:$git_check_port +'