1971ae9f51
The fix for this Git security issue [1] involved disabling the local clone optimization when the repository contains symbolic links. The security fix broke this particular test; this patch works around the fix. [1]: https://github.com/git/git/security/advisories/GHSA-3wp6-j8xr-qw85
23 lines
443 B
Bash
23 lines
443 B
Bash
test_description='install shim works'
|
|
. '../test-lib.bash'
|
|
|
|
test_expect_success 'setup' '
|
|
git config --global protocol.file.allow always
|
|
cd ${DOTFILES}
|
|
git init
|
|
git submodule add ${BASEDIR} dotbot
|
|
cp ./dotbot/tools/git-submodule/install .
|
|
echo "pear" > ${DOTFILES}/foo
|
|
'
|
|
|
|
test_expect_success 'run' '
|
|
cat > ${DOTFILES}/install.conf.yaml <<EOF
|
|
- link:
|
|
~/.foo: foo
|
|
EOF
|
|
${DOTFILES}/install
|
|
'
|
|
|
|
test_expect_success 'test' '
|
|
grep "pear" ~/.foo
|
|
'
|