commit | 4eb9ae135b88549b127dbe3e02a233f08b7bab6d | [log] [tgz] |
---|---|---|
author | Dariusz Luksza <dariusz.luksza@gmail.com> | Tue Sep 26 15:26:05 2023 +0100 |
committer | Dariusz Luksza <dariusz.luksza@gmail.com> | Fri Sep 29 10:36:03 2023 +0100 |
tree | 60202f5abe5aad39d0c23af760d5edc8aa6f9161 | |
parent | 42b608a64bdb1350656b2ca09643ed4173cd6e73 [diff] |
Add `--recurse-submodules` flag to supporting commands When a repository contains git submodules, the simple `git checkout` command will leave the working tree with uncommited changes to the submodule references (aka dirty). This then requires a second git command to synchronize submodules. The checkout command already has the `--recurse-submodules` argument that will fetch submodules of checkout, ensuring that repository is in consistent state. Also using this flag with repositories that doesn't have submodules, the checkout will succeed without any complaint. The downside is that checkout command could issue multiple parallel fetch calls that may generate high load on the server. This is why to enable this feature, a modification to the plugin config is required. This change adds a new plugin configuraiton option: `download.recurseSubmodules`, by default set to `false`. That will add `--recurse-submodules` flag to the "checkout", "branch", "reset" and "pull" download commands. Bug: Issue 302090044 Change-Id: I7b003dbd0687f173e8166a5ede931f773db5439c
All documentation may be found under src/main/resources/Documentation/.