summaryrefslogtreecommitdiff
path: root/t/t5100/nul-b64.in
diff options
context:
space:
mode:
authorLibravatar Eric Sunshine <sunshine@sunshineco.com>2018-07-01 20:23:51 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-07-16 14:38:47 -0700
commitadc73318fe120e7b4366c734d574c6316745bc68 (patch)
treeb9088ee7ecbb9caa2cba00edca140564a5522ce1 /t/t5100/nul-b64.in
parentt7201: drop pointless "exit 0" at end of subshell (diff)
downloadtgif-adc73318fe120e7b4366c734d574c6316745bc68.tar.xz
t7400: fix broken "submodule add/reconfigure --force" test
This test has been dysfunctional since it was added by 619acfc78c (submodule add: extend force flag to add existing repos, 2016-10-06), however, two problems early in the test went unnoticed due to a broken &&-chain later in the test. First, it tries configuring the submodule with repository "bogus-url", however, "git submodule add" insists that the repository be either an absolute URL or a relative pathname requiring prefix "./" or "../" (this is true even with --force), but "bogus-url" does not meet those criteria, thus the command fails. Second, it then tries configuring a submodule with a path which is .gitignore'd, which is disallowed. This restriction can be overridden with --force, but the test neglects to use that option. Fix both problems, as well as the broken &&-chain behind which they hid. Reviewed-by: Stefan Beller <sbeller@google.com> Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5100/nul-b64.in')
0 files changed, 0 insertions, 0 deletions