Wrap submodule command with a string
What does this MR do?
Wrap submodule command with a string
Why was this MR needed?
Upgrading to Git 2.22, breaks the scenario when you have a Git
repository with submodules and GIT_SUBMODULE_STRATEGY
is set to
recursive
.
The command git submodule foreach --recursive git clean -ffxd
is build
and this works fine in Git <2.21 but in Git 2.22 it fails with the
following error error: unknown switch
f'the reason for this is because Git seems to be thinking that
-ffxdis a flag for
git
submoduleand not for
git clean`. Wrapping the commands with single
quotes to fix this issue.
Are there points in the code the reviewer needs to double check?
- Git 1.7
- Should we add additional tests
Does this MR meet the acceptance criteria?
-
Documentation created/updated -
Added tests for this feature/bug -
In case of conflicts with master
- branch was rebased
What are the relevant issue numbers?
Closes #4352 (closed)
Edited by Tomasz Maczukin