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 dscf=$tmp/mirror/pool/main/example_2.1.dsc
78 t-reprepro-includedsc avon $dscf ds-
84 t-ref-same refs/remotes/dgit/dgit/avon
88 t-dgit import-dsc $dscf +x
89 t-ref-same refs/heads/x
90 git show x | grep Spong
92 t-expect-fail 'Your git tree does not have that object' \
93 t-dgit --no-chase-dsc-distro import-dsc $dscf +y
96 t-dgit --no-chase-dsc-distro import-dsc $dscf +y