Merge branch 'es/test-fixes'
Test clean-up and corrections. * es/test-fixes: (26 commits) t5608: fix broken &&-chain t9119: fix broken &&-chains t9000-t9999: fix broken &&-chains t7000-t7999: fix broken &&-chains t6000-t6999: fix broken &&-chains t5000-t5999: fix broken &&-chains t4000-t4999: fix broken &&-chains t3030: fix broken &&-chains t3000-t3999: fix broken &&-chains t2000-t2999: fix broken &&-chains t1000-t1999: fix broken &&-chains t0000-t0999: fix broken &&-chains t9814: simplify convoluted check that command correctly errors out t9001: fix broken "invoke hook" test t7810: use test_expect_code() instead of hand-rolled comparison t7400: fix broken "submodule add/reconfigure --force" test t7201: drop pointless "exit 0" at end of subshell t6036: fix broken "merge fails but has appropriate contents" tests t5505: modernize and simplify hard-to-digest test t5406: use write_script() instead of birthing shell script manually ...
This commit is contained in:
@ -171,12 +171,13 @@ test_expect_success 'submodule add to .gitignored path with --force' '
|
||||
test_expect_success 'submodule add to reconfigure existing submodule with --force' '
|
||||
(
|
||||
cd addtest-ignore &&
|
||||
git submodule add --force bogus-url submod &&
|
||||
git submodule add -b initial "$submodurl" submod-branch &&
|
||||
test "bogus-url" = "$(git config -f .gitmodules submodule.submod.url)" &&
|
||||
test "bogus-url" = "$(git config submodule.submod.url)" &&
|
||||
bogus_url="$(pwd)/bogus-url" &&
|
||||
git submodule add --force "$bogus_url" submod &&
|
||||
git submodule add --force -b initial "$submodurl" submod-branch &&
|
||||
test "$bogus_url" = "$(git config -f .gitmodules submodule.submod.url)" &&
|
||||
test "$bogus_url" = "$(git config submodule.submod.url)" &&
|
||||
# Restore the url
|
||||
git submodule add --force "$submodurl" submod
|
||||
git submodule add --force "$submodurl" submod &&
|
||||
test "$submodurl" = "$(git config -f .gitmodules submodule.submod.url)" &&
|
||||
test "$submodurl" = "$(git config submodule.submod.url)"
|
||||
)
|
||||
@ -818,7 +819,7 @@ test_expect_success '../bar/a/b/c works with relative local path - ../foo/bar.gi
|
||||
cp pristine-.git-config .git/config &&
|
||||
cp pristine-.gitmodules .gitmodules &&
|
||||
mkdir -p a/b/c &&
|
||||
(cd a/b/c; git init) &&
|
||||
(cd a/b/c && git init) &&
|
||||
git config remote.origin.url ../foo/bar.git &&
|
||||
git submodule add ../bar/a/b/c ./a/b/c &&
|
||||
git submodule init &&
|
||||
|
||||
Reference in New Issue
Block a user