5 t-setup-import examplegit
15 dsc=${path}/${p}_${v}.dsc
16 t-dgit $opts import-dsc $dsc $branch
33 git branch -D u.$v ||:
34 git checkout -b u.$v $branch
37 cp -al ../t.unpack/*/. .
40 git diff --stat --exit-code
45 check-import ../mirror/pool/main 1.2
47 dgit12=`git rev-parse HEAD`
49 dsc2=../mirror/pool/main/${p}_2.0.dsc
52 t-expect-fail 'is checked out - will not update' \
53 t-dgit import-dsc $dsc2 $branch
57 t-expect-fail 'Not fast forward' \
58 t-dgit import-dsc $dsc2 $branch
60 t-expect-fail 'Not fast forward' \
61 t-dgit import-dsc $dsc2 ..$branch
63 t-dgit import-dsc $dsc2 +$branch
72 check-import $troot/pkg-srcs 1.0-1
74 t-expect-fail "Your git tree does not have that object" \
75 check-import ../mirror/pool/main 1.2
77 check-import ../mirror/pool/main 1.2 --force-import-dsc-with-dgit-field
80 dsc2=$troot/pkg-srcs/${p}_${v}.dsc
82 t-expect-fail E:'Branch.*already exists' \
83 t-dgit import-dsc $dsc2 $branch
85 git branch merge-reset
86 t-dgit import-dsc $dsc2 ..$branch
87 t-has-ancestor merge-reset $branch
89 git push . +merge-reset:$branch
91 t-dgit import-dsc $dsc2 +$branch
93 mb=$(t-git-merge-base merge-reset $branch)
96 t-expect-fail 'signature check failed' \
97 t-dgit import-dsc --require-valid-signature $dsc2 +$branch