Skip to content

Commit 0e18a5b

Browse files
stefanbellergitster
authored andcommitted
t5400: remove dead code
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent ebe8621 commit 0e18a5b

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

t/t5400-send-pack.sh

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff 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-
177163
test_expect_success 'pushing explicit refspecs respects forcing' '
178164
rewound_push_setup &&
179165
parent_orig=$(cd parent && git rev-parse --verify master) &&

0 commit comments

Comments
 (0)