summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2014-12-15 19:58:07 -0800
committerJunio C Hamano <gitster@pobox.com>2014-12-16 10:58:13 -0800
commit0e18a5b428920bdde28318d3b8e9d6d987729698 (patch)
treed07e5077aa02c5866f43f2cb8505dac4170f25aa /t
parentebe8621fd798a568ae33eb6a665cb3c758dd3816 (diff)
downloadgit-0e18a5b428920bdde28318d3b8e9d6d987729698.tar.gz
t5400: remove dead codesb/t5400-remove-unused
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t5400-send-pack.sh16
1 files changed, 1 insertions, 15 deletions
diff --git a/t/t5400-send-pack.sh b/t/t5400-send-pack.sh
index 0eace37a03..0d0b6e2290 100755
--- a/t/t5400-send-pack.sh
+++ b/t/t5400-send-pack.sh
@@ -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) &&