Skip to content

Commit

Permalink
fix(manager/git-submodules): get recorded submodule commit (renovateb…
Browse files Browse the repository at this point in the history
  • Loading branch information
amezin authored and oxdev03 committed Aug 24, 2024
1 parent c3ea33a commit 2923d8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/modules/manager/git-submodules/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ export default async function extractPackageFile(
const deps = [];
for (const { name, path } of depNames) {
try {
const [currentDigest] = (await git.subModule(['status', path]))
const [currentDigest] = (
await git.subModule(['status', '--cached', path])
)
.trim()
.replace(regEx(/^[-+]/), '')
.split(regEx(/\s/));
Expand Down

0 comments on commit 2923d8a

Please sign in to comment.