зеркало из https://github.com/microsoft/git.git
t5400: remove dead code
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
ebe8621fd7
Коммит
0e18a5b428
|
@ -76,8 +76,7 @@ test_expect_success 'refuse pushing rewound head without --force' '
|
|||
test "$victim_head" = "$pushed_head"
|
||||
'
|
||||
|
||||
test_expect_success \
|
||||
'push can be used to delete a ref' '
|
||||
test_expect_success 'push can be used to delete a ref' '
|
||||
( cd victim && git branch extra master ) &&
|
||||
git send-pack ./victim :extra master &&
|
||||
( cd victim &&
|
||||
|
@ -161,19 +160,6 @@ rewound_push_setup() {
|
|||
)
|
||||
}
|
||||
|
||||
rewound_push_succeeded() {
|
||||
cmp ../parent/.git/refs/heads/master .git/refs/heads/master
|
||||
}
|
||||
|
||||
rewound_push_failed() {
|
||||
if rewound_push_succeeded
|
||||
then
|
||||
false
|
||||
else
|
||||
true
|
||||
fi
|
||||
}
|
||||
|
||||
test_expect_success 'pushing explicit refspecs respects forcing' '
|
||||
rewound_push_setup &&
|
||||
parent_orig=$(cd parent && git rev-parse --verify master) &&
|
||||
|
|
Загрузка…
Ссылка в новой задаче