Skip to content

Commit

Permalink
fix(manager/git-submodules): get recorded submodule commit (#30976)
Browse files Browse the repository at this point in the history
  • Loading branch information
amezin authored Aug 23, 2024
1 parent 94d6067 commit 745978f
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 745978f

Please sign in to comment.