Skip to content

Commit

Permalink
Merge branch 'sb/t5400-remove-unused'
Browse files Browse the repository at this point in the history
* sb/t5400-remove-unused:
  t5400: remove dead code
  • Loading branch information
Junio C Hamano committed Jan 7, 2015
2 parents 5095fa6 + 0e18a5b commit 3d2c1bf
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 @@ -196,19 +195,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 3d2c1bf

Please sign in to comment.