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 &&
@@ -161,19 +160,6 @@ rewound_push_setup() {
161160 )
162161}
163162
164- rewound_push_succeeded () {
165- cmp ../parent/.git/refs/heads/master .git/refs/heads/master
166- }
167-
168- rewound_push_failed () {
169- if rewound_push_succeeded
170- then
171- false
172- else
173- true
174- fi
175- }
176-
177163test_expect_success ' pushing explicit refspecs respects forcing' '
178164 rewound_push_setup &&
179165 parent_orig=$(cd parent && git rev-parse --verify master) &&
You can’t perform that action at this time.
0 commit comments