mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2025-11-06 11:35:40 +01:00
test: adjust push force to push mode behavior
This commit is contained in:
14
test/main.t
14
test/main.t
@@ -778,6 +778,19 @@ test_expect_failure 'remote big push force' '
|
|||||||
(
|
(
|
||||||
cd gitrepo &&
|
cd gitrepo &&
|
||||||
|
|
||||||
|
if test "$CAPABILITY_PUSH" = "t"
|
||||||
|
then
|
||||||
|
check_push 0 --force --all <<-\EOF
|
||||||
|
master:forced-update
|
||||||
|
good_bmark:forced-update
|
||||||
|
branches/good_branch:forced-update
|
||||||
|
new_bmark:new
|
||||||
|
branches/new_branch:new
|
||||||
|
bad_bmark1:forced-update
|
||||||
|
bad_bmark2:forced-update
|
||||||
|
branches/bad_branch:forced-update
|
||||||
|
EOF
|
||||||
|
else
|
||||||
check_push 0 --force --all <<-\EOF
|
check_push 0 --force --all <<-\EOF
|
||||||
master
|
master
|
||||||
good_bmark
|
good_bmark
|
||||||
@@ -788,6 +801,7 @@ test_expect_failure 'remote big push force' '
|
|||||||
bad_bmark2:forced-update
|
bad_bmark2:forced-update
|
||||||
branches/bad_branch:forced-update
|
branches/bad_branch:forced-update
|
||||||
EOF
|
EOF
|
||||||
|
fi
|
||||||
) &&
|
) &&
|
||||||
|
|
||||||
check_branch hgrepo default six &&
|
check_branch hgrepo default six &&
|
||||||
|
|||||||
Reference in New Issue
Block a user