chiark / gitweb /
Infra: Allow FRESHREPO to override "tag already exists"
[dgit.git] / tests / tests / drs-push-rejects
index df90d22c2109403ec1a257869f8ad9f92c84c8e3..5f6d04a498792e43ef1c318693f31498ae9dfde7 100755 (executable)
@@ -159,8 +159,13 @@ prep unstable sid
 mktag
 mustsucceed $push_spec # succeeds
 
+mktag
+mustfail 'push is missing head ref update' $push_spec
+
+git commit --allow-empty -m 'Dummy update'
 mktag
 mustfail 'not replacing previously-pushed version' $push_spec
+git reset --hard HEAD~
 
 prep_dm_mangle () {
        prep unstable sid