11 t-dgit --no-rm-on-error clone $p
13 # And now we make an update using the same orig tarball, and
14 # check that the orig import is stable.
18 git branch first-import
20 m='Commit for import check'
21 echo "$m" >>import-check
24 dch -v $v -D unstable -m "$m"
26 git add import-check debian/changelog
29 t-dgit -wgf quilt-fixup
30 t-dgit -wgf build-source
32 # The resulting .dsc does not have a Dgit line (because dgit push
33 # puts that in). So we just shove it in the archive now
35 ln ../${p}_${v}.* $tmp/mirror/pool/main/
40 git branch first-2nd-import remotes/dgit/dgit/sid
44 git update-ref refs/remotes/dgit/dgit/sid first-import
49 t-ref-same refs/remotes/dgit/dgit/sid
50 t-ref-same refs/heads/first-2nd-import
52 for orig in ../${p}_${v%-*}.orig*.tar.*; do
53 tar -atf $orig | LC_ALL=C sort >../files.o
54 pfx=$(perl <../files.o -ne '
56 m#^([^/]+/)# or exit 0;
64 $_="" if m/^$/ || m#/$# || m#^\.git/#;
67 pat="^Import ${orig//./\\.}\$"
69 for start in first-import first-2nd-import; do
70 git log --pretty='tformat:%H' --grep "$pat" $start \
72 test $(wc -l <../t.imp) = 1
74 t-ref-same-val "$orig $start" "$imp"
76 git ls-tree -r --name-only "$t_ref_val:" \
83 t-import-chk() { t-import-chk1 "$@"; t-import-chk2; }