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

Deinit submodules before removing the repo

when forcing init/clone to happen.
This commit is contained in:
Erik Flodin
2021-01-03 23:02:25 +01:00
parent fb56513d17
commit accec694f5
2 changed files with 4 additions and 1 deletions

View File

@@ -60,10 +60,11 @@ def test_init(
else:
assert run.success
assert 'Initialized empty shared Git repository' in run.out
assert run.err == ''
if repo_present:
assert not old_repo.isfile(), 'Original repo still exists'
else:
assert run.err == ''
if alt_work:
assert repo_config('core.worktree') == paths.work