summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tests/debpolicy-newreject4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/tests/debpolicy-newreject b/tests/tests/debpolicy-newreject
index 00972e7..19b1e15 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