Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
is not UNRELEASED. This could easily happen if this release was being
made from a git branch which predates the previous package upload.
is not UNRELEASED. This could easily happen if this release was being
made from a git branch which predates the previous package upload.
+ Test suite:
+ * overwrite-chkclog: test UNRELEASED handling.
+
--
dgit (3.8) unstable; urgency=medium
--
dgit (3.8) unstable; urgency=medium
git checkout master which
EDITOR=: git commit
git checkout master which
EDITOR=: git commit
+perl -i~ -pe 's/^(\w+ \(\S+\)) stable/$1 UNRELEASED/ if $.>1' debian/changelog
+git add debian/changelog
+git commit -m 'UNRELEASED changelog'
+
+t-dgit -wgf build
+
+t-expect-fail E:'Distribution.*is UNRELEASED' \
+t-dgit push --overwrite stable
+
+git revert --no-edit 'HEAD^{/UNRELEASED changelog}'
+
t-dgit -wgf build
perl -i~ -pe 's/^(\w+ \(\S+)(\) stable)/$1+X$2/ if $.>1' debian/changelog
t-dgit -wgf build
perl -i~ -pe 's/^(\w+ \(\S+)(\) stable)/$1+X$2/ if $.>1' debian/changelog