1
0
mirror of https://github.com/TheLocehiliosan/yadm synced 2026-03-02 03:49:29 +00:00

Reinitialize submodules during upgrade

This commit is contained in:
Tim Byrne
2019-11-05 16:36:05 -06:00
parent a217537b26
commit f2b2d505a2
2 changed files with 16 additions and 2 deletions

View File

@@ -75,6 +75,7 @@ def test_upgrade(tmpdir, runner, yadm, condition):
YADM_REPO="{yadm_dir}/repo.git"
YADM_LEGACY_DIR="{legacy_dir}"
GIT_PROGRAM="{git}"
function cd {{ echo "$@";}}
upgrade
"""
run = runner(command=['bash'], inp=script)
@@ -99,3 +100,5 @@ def test_upgrade(tmpdir, runner, yadm, condition):
f'{yadm_dir.join(lpath)}')
assert expected in run.out
assert 'files tracked by yadm have been renamed' in run.out
assert 'submodule deinit -f .' in run.out
assert 'submodule update --init --recursive' in run.out