File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,8 +76,7 @@ test_expect_success 'refuse pushing rewound head without --force' '
7676 test "$victim_head" = "$pushed_head"
7777'
7878
79- test_expect_success \
80- ' push can be used to delete a ref' '
79+ test_expect_success ' push can be used to delete a ref' '
8180 ( cd victim && git branch extra master ) &&
8281 git send-pack ./victim :extra master &&
8382 ( cd victim &&
@@ -196,19 +195,6 @@ rewound_push_setup() {
196195 )
197196}
198197
199- rewound_push_succeeded () {
200- cmp ../parent/.git/refs/heads/master .git/refs/heads/master
201- }
202-
203- rewound_push_failed () {
204- if rewound_push_succeeded
205- then
206- false
207- else
208- true
209- fi
210- }
211-
212198test_expect_success ' pushing explicit refspecs respects forcing' '
213199 rewound_push_setup &&
214200 parent_orig=$(cd parent && git rev-parse --verify master) &&
You can’t perform that action at this time.
0 commit comments