diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-05-17 10:59:28 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-05-31 11:54:14 +0100 |
commit | 7c74ea4a307ba8d9ca72d69e36b45c2d78561da5 (patch) | |
tree | c903ee8b3ee19c2617c7fc6c8a35956ced9649a7 | |
parent | aa79d5a26d9194c90c5f1d82bc99de23e1fba2b4 (diff) |
Tests: debpolicy-newreject: Make and use a tag at the start
-rwxr-xr-x | tests/tests/debpolicy-newreject | 4 |
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 |