6 t-dependencies reprepro
7 t-setup-import examplegit
8 t-tstunt-parsechangelog
11 # rewrite some things, so we test the rewriting code
19 old=$(t-git-get-ref-exact "refs/original/$r")
20 new=$(t-git-get-ref-exact "$r")
21 if [ "$old" = "$new" ]; then return; fi
22 echo >>$tmp/map/map "$old $new"
27 --msg-filter 'sed s/Sid/Spong/' \
28 --tag-name-filter cat \
29 ^archive/test-dummy/2.0 \
39 refs/remotes/dgit/dgit/sid
49 git commit -m 'by test suite'
50 git push $tmp/git/$p.git master:refs/dgit-rewrite/map
55 t-reprepro-cfg ds- downstream
60 dscf=$tmp/mirror/pool/main/example_1.1.dsc
61 t-reprepro-includedsc avon $dscf ds-
68 t-dgit import-dsc $dscf x
71 t-git-config dgit-suite.avon.distro downstream
72 t-git-config dgit-distro.downstream.git-check false
74 t-dgit clone example avon example.avon
77 perl -i -pe 's/ test-dummy / unknown-distro / if m/^Dgit:/' $dscf
80 t-expect-fail 'hinted url with protocol file which is unsafe' \
81 t-dgit import-dsc $dscf xunk
83 t-git-config dgit.dsc-url-proto-ok.file true
84 t-dgit import-dsc $dscf xunk
89 dscf=$tmp/mirror/pool/main/example_2.1.dsc
90 t-reprepro-includedsc avon $dscf ds-
96 t-ref-same refs/remotes/dgit/dgit/avon
100 t-dgit import-dsc $dscf +x
101 t-ref-same refs/heads/x
102 git show x | grep Spong
104 t-expect-fail 'Your git tree does not have that object' \
105 t-dgit --no-chase-dsc-distro import-dsc $dscf +y
108 t-dgit --no-chase-dsc-distro import-dsc $dscf +y
109 git show y | grep Sid