Skip to content
Snippets Groups Projects
Commit 4237fa36 authored by Anders Lindh Olsson's avatar Anders Lindh Olsson :8ball:
Browse files

E3-1720: Change submodule reset to silence error message

The error messages

    error: could not lock config file .git/modules/foo/config: No such file or directory
    warning: Could not unset core.worktree setting in submodule \'foo\'

can be seen for all non-local mode wrappers (source code as git
submodule).

This happens if doing a `git submodule deinit` before a submodule has
been initialised. If a submodule has been initialised, but then is
deinitialised twice, the second error message shown above is still
displayed.

This fixes the above cases by instead doing a forced recursive deletion
of the submodule directory.
parent 67d446b7
No related branches found
No related tags found
1 merge request!195E3-1720: Change submodule reset to silence error message
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment