X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Ftests%2Fdownstream-gitless;h=6b2df1bd3e2578bf6565cbe1308d87093c541074;hb=d436b26183c219a8633f84aa39cf991fd8b6de4d;hp=f3b3469041fdbbc38f073b04f6d476efbfc20c1b;hpb=9fd10d6d6a5b67cbba36a82c1ea5342526c32d50;p=dgit.git diff --git a/tests/tests/downstream-gitless b/tests/tests/downstream-gitless index f3b34690..6b2df1bd 100755 --- a/tests/tests/downstream-gitless +++ b/tests/tests/downstream-gitless @@ -74,6 +74,18 @@ t-git-config dgit-distro.downstream.git-check false t-dgit clone example avon example.avon +perl -i -pe 's/ test-dummy / unknown-distro / if m/^Dgit:/' $dscf +cd $p.import + +t-expect-fail 'hinted url with protocol file which is unsafe' \ +t-dgit import-dsc $dscf xunk + +t-git-config dgit.dsc-url-proto-ok.file true +t-dgit import-dsc $dscf xunk + +cd .. + + dscf=$tmp/mirror/pool/main/example_2.1.dsc t-reprepro-includedsc avon $dscf ds- t-reprepro-regen ds-