-dgit (2.14) unstable; urgency=low
+dgit (2.15~) unstable; urgency=low
*
--
+dgit (2.14) unstable; urgency=critical
+
+ CRITICAL BUGFIX:
+ * Do not generate bogus commits with --overwrite or import-dsc.
+ Closes:#849041.
+
+ Test suite:
+ * Run a lot of git-fsck.
+
+ -- Ian Jackson <ijackson@chiark.greenend.org.uk> Wed, 04 Jan 2017 22:52:55 +0000
+
dgit (2.13) unstable; urgency=high
Changed behaviour:
parent $dgitview
parent $archive_hash
author $authline
-commiter $authline
+committer $authline
$msg_msg
progress "Import, merging.";
my $tree = cmdoutput @git, qw(rev-parse), "$newhash:";
my $version = getfield $dsc, 'Version';
+ my $clogp = commit_getclogp $newhash;
+ my $authline = clogp_authline $clogp;
$newhash = make_commit_text <<END;
tree $tree
parent $newhash
parent $oldhash
+author $authline
+committer $authline
Merge $package ($version) import into $dstbranch
END
esac
}
+t-git-fsck () {
+ git fsck --no-dangling --strict || ${expect_fsck_fail-false}
+}
+
+t-fscks () {
+ (
+ shopt -s nullglob
+ for d in $tmp/*/.git $tmp/git/*.git; do
+ cd "$d"
+ t-git-fsck
+ done
+ )
+}
+
+t-ok () {
+ t-fscks
+ echo ok.
+}
+
t-rm-dput-dropping () {
rm -f $tmp/${p}_${v}_*.upload
}
t-setup-done 'p v suitespecs majorv revision' "aq git mirror $p"
-echo ok.
+t-ok
t-setup-done 'GNUPGHOME' 'gnupg'
-echo ok.
+t-ok
cd $p
grep moo moo
-echo ok.
+t-ok
bm-act-iterate
done
-echo ok.
+t-ok
bm-act-iterate
done
-echo ok.
+t-ok
bm-guess-e-source-e-targets "$act"
bm-act-iterate
-echo ok.
+t-ok
t-dgit clone $p
-echo ok.
+t-ok
cp -a $tmp/git/_template $dgitrepo
t-dgit clone $p
+
+t-ok
t-pushed-good dgit/sid
-echo ok.
+t-ok
t-refs-same-start
t-refs-same refs/remotes/dgit/sid,stable refs/remotes/dgit/sid
-echo ok.
+t-ok
t-policy-admin list-taints | tee $tmp/taints-list | grep $autotaint
-echo ok.
+t-ok
'Reason: rewound suite sid; --deliberately-not-fast-forward specified' \
t-dgit push
-echo ok.
+t-ok
expect-fail-distro-series DEB_VENDOR \
t-dgit clone $p
-echo done.
+t-ok
push_and_check +HEAD:master
-echo done.
+t-ok
prep_dm_mangle ''
mustsucceed $push_spec # succeeds
-echo ok.
+# we generate some junk, so we must tolerate git-fsck complaining
+expect_fsck_fail=true
+
+t-ok
cd drs-cloned
ls -al infra/dgit-repos-server
-echo ok.
+t-ok
t-cloned-fetched-good
t-has-ancestor $old
-echo ok.
+t-ok
t-cloned-fetched-good
t-has-ancestor debian/3-1
-echo ok.
+t-ok
cd $tmp
diff -ruN gbp-output/tar-x tar-x
-echo done.
+t-ok
t-dgit -cdgit.default.clean-mode=none clean
-echo ok.
+t-ok
t-expect-fail 'signature check failed' \
t-dgit import-dsc --require-valid-signature $dsc2 +$branch
-echo ok.
+t-ok
lastv_imp=$this_imp
done
-echo ok.
+t-ok
# 3.0 (quilt), single-debian-patch, one orig
t-import-chk sunxi-tools 1.2-2.~~dgittest
-echo done.
+t-ok
tar zvcf ../$orig .
mangle2
-echo done.
+t-ok
copy-check 2.1 testing
-echo ok.
+t-ok
t-check-mirrored
-echo done.
+t-ok
t-dgit build
t-dgit push
t-check-mirrored
+
+t-ok
t-check-not-mirrored
t-files-notexist $reposmirror/$p.*
-echo ok.
+t-ok
t-expect-fail 'debian/TRASH' \
t-dgit push --new
-echo ok.
+t-ok
t-dgit -wgf push --new
-echo ok.
+t-ok
t-has-parent-or-is HEAD $rcombined
-echo ok.
+t-ok
test-push "newtag $count"
done
-echo ok.
+t-ok
t-expect-fail E:'archive contains .* with different checksum' \
test-push-2 --new
-echo done.
+t-ok
. $troot/lib-orig-include-exclude
-echo done.
+t-ok
t-dgit push --overwrite stable
-echo done.
+t-ok
t-dgit push --overwrite=1.2 stable
-echo ok.
+t-ok
t-gbp-pushed-good
-echo ok.
+t-ok
t-dgit push --overwrite=1.2 stable
-echo ok.
+t-ok
t-pushed-good dgit/sid
-echo ok.
+t-ok
t-pushed-good master
-echo ok.
+t-ok
t-pushed-good dgit/sid
-echo ok.
+t-ok
mv ../this.cmp ../last.cmp
done
-echo ok.
+t-ok
test-push-2
-echo ok.
+t-ok
'gbp-build -S' \
'gbp-build -b' \
-echo ok.
+t-ok
bm-gbp-example-acts \
'sbuild -c build --arch-all' \
-echo ok.
+t-ok
series
END
-echo ok.
+t-ok
want-success dpm --new
-echo ok.
+t-ok
cd $tmp/$p
t-pushed-good dgit/sid
-echo ok.
+t-ok
test $rc = 1
-echo ok.
+t-ok
t-ref-same-exact $tagref
fetch-check
-echo done.
+t-ok
cd $root
$troot/enumerate-tests gencontrol >$tmp/control-expected
diff debian/tests/control $tmp/control-expected
+
+t-ok
attempt-replay "does not declare previously tags/$tagpfx/$v"
-echo ok.
+t-ok
start
attempt
-echo ok.
+t-ok
fgrep 'Update to version 1.1' ../${p}_${v}_source.changes
-echo ok.
+t-ok