Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t5400: remove dead code
author
Stefan Beller
<sbeller@google.com>
Tue, 16 Dec 2014 03:58:07 +0000
(19:58 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 16 Dec 2014 18:58:13 +0000
(10:58 -0800)
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5400-send-pack.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
ebe8621
)
diff --git
a/t/t5400-send-pack.sh
b/t/t5400-send-pack.sh
index 0eace37a03d75a7205575c36a0ec0de3ec401b1b..0d0b6e229049b759ebee7d3d5774619ba06761bc 100755
(executable)
--- 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 "$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 &&
( 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) &&
test_expect_success 'pushing explicit refspecs respects forcing' '
rewound_push_setup &&
parent_orig=$(cd parent && git rev-parse --verify master) &&