From 2b7751c05d1bf3927d8454979bdbd56ae725b8a8 Mon Sep 17 00:00:00 2001 From: David Turner Date: Thu, 26 Aug 2021 11:32:02 -0400 Subject: [PATCH] fix git meta submodule status . --- node/lib/cmd/submodule.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/node/lib/cmd/submodule.js b/node/lib/cmd/submodule.js index e3554b9b4..11a0513ce 100644 --- a/node/lib/cmd/submodule.js +++ b/node/lib/cmd/submodule.js @@ -171,13 +171,13 @@ const doStatusCommand = co.wrap(function *(paths, verbose) { const relCwd = path.relative(workdir, cwd); const head = yield repo.getHeadCommit(); const tree = yield head.getTree(); + paths = paths.map(filename => { + return GitUtil.resolveRelativePath(workdir, cwd, filename); + }); const status = yield StatusUtil.getRepoStatus(repo, { paths: paths, showMetaChanges: false, }); - paths = paths.map(filename => { - return GitUtil.resolveRelativePath(workdir, cwd, filename); - }); const urls = yield SubmoduleConfigUtil.getSubmodulesFromCommit(repo, head); const allSubs = Object.keys(urls); const subs = status.submodules;