chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests: debpolicy-newreject: Make and use a tag at the start
[dgit.git]
/
tests
/
tests
/
debpolicy-newreject
diff --git
a/tests/tests/debpolicy-newreject
b/tests/tests/debpolicy-newreject
index 00972e747fe8b0483bbd8ea6927e045e891c9387..19b1e15e5223951d47ef034342c7ad076304306c 100755
(executable)
--- a/
tests/tests/debpolicy-newreject
+++ b/
tests/tests/debpolicy-newreject
@@
-17,6
+17,8
@@
t-commit () {
revision=$(( $revision + 1 ))
}
revision=$(( $revision + 1 ))
}
+git tag start
+
echo FORBIDDEN >debian/some-file
git add debian/some-file
t-commit 'Commit a forbidden thing'
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
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
t-commit 'will vanish from NEW'
vanished=$v
t-dgit build