From: Ian Jackson Date: Sun, 17 May 2015 09:59:28 +0000 (+0100) Subject: Tests: debpolicy-newreject: Make and use a tag at the start X-Git-Tag: debian/0.30~154 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=7c74ea4a307ba8d9ca72d69e36b45c2d78561da5 Tests: debpolicy-newreject: Make and use a tag at the start --- diff --git a/tests/tests/debpolicy-newreject b/tests/tests/debpolicy-newreject index 00972e74..19b1e15e 100755 --- a/tests/tests/debpolicy-newreject +++ b/tests/tests/debpolicy-newreject @@ -17,6 +17,8 @@ t-commit () { revision=$(( $revision + 1 )) } +git tag start + echo FORBIDDEN >debian/some-file git add debian/some-file t-commit 'Commit a forbidden thing' @@ -29,7 +31,7 @@ t-expect-fail 'forbidden for testing' \ t-dgit push --new t-git-dir-check enoent -git reset --hard HEAD~ +git reset --hard start t-commit 'will vanish from NEW' vanished=$v t-dgit build