3 test_description='check handling of .gitmodule path with dash'
6 test_expect_success 'create submodule with dash in path' '
8 git -C upstream commit --allow-empty -m base &&
9 git submodule add ./upstream sub &&
11 git commit -m submodule
14 test_expect_success 'clone rejects unprotected dash' '
15 test_when_finished "rm -rf dst" &&
16 git clone --recurse-submodules . dst 2>err &&
17 test_i18ngrep ignoring err