Skip to content

Commit

Permalink
t5400: remove dead code
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Stefan Beller authored and Junio C Hamano committed Dec 16, 2014
1 parent ebe8621 commit 0e18a5b
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions t/t5400-send-pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down Expand Up @@ -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) &&
Expand Down

0 comments on commit 0e18a5b

Please sign in to comment.