Skip to content

Commit

Permalink
fix(manager/git-submodule): updates when update=none (#32455)
Browse files Browse the repository at this point in the history
Co-authored-by: Rhys Arkins <rhys@arkins.net>
  • Loading branch information
samgiz and rarkins authored Nov 28, 2024
1 parent 2f8ff83 commit 13d9c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modules/manager/git-submodules/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default async function updateDependency({
const submoduleGit = Git(upath.join(localDir, upgrade.depName));

try {
await git.submoduleUpdate(['--init', upgrade.depName!]);
await git.submoduleUpdate(['--checkout', '--init', upgrade.depName!]);
await submoduleGit.checkout([upgrade.newDigest!]);
if (upgrade.newValue && upgrade.currentValue !== upgrade.newValue) {
await git.subModule([
Expand Down

0 comments on commit 13d9c51

Please sign in to comment.