Skip to content

Commit d5e7c73

Browse files
committed
Merge branch 'fix-submodule-dot'
2 parents 3c498c9 + 2b7751c commit d5e7c73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

node/lib/cmd/submodule.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,13 @@ const doStatusCommand = co.wrap(function *(paths, verbose) {
171171
const relCwd = path.relative(workdir, cwd);
172172
const head = yield repo.getHeadCommit();
173173
const tree = yield head.getTree();
174+
paths = paths.map(filename => {
175+
return GitUtil.resolveRelativePath(workdir, cwd, filename);
176+
});
174177
const status = yield StatusUtil.getRepoStatus(repo, {
175178
paths: paths,
176179
showMetaChanges: false,
177180
});
178-
paths = paths.map(filename => {
179-
return GitUtil.resolveRelativePath(workdir, cwd, filename);
180-
});
181181
const urls = yield SubmoduleConfigUtil.getSubmodulesFromCommit(repo, head);
182182
const allSubs = Object.keys(urls);
183183
const subs = status.submodules;

0 commit comments

Comments
 (0)