diff --git a/src/cml.js b/src/cml.js index 4c1507cd5..42bb0043e 100644 --- a/src/cml.js +++ b/src/cml.js @@ -533,8 +533,14 @@ class CML { return; } + const prefix = await new Promise((resolve, reject) => + git.revparse(['--show-prefix'], (err, data) => + err !== null ? reject(err) : resolve(data) + ) + ); + const paths = (await globby(globs)).filter((path) => - files.map((file) => file.path).includes(path) + files.map((file) => file.path).includes(prefix + path) ); if (!paths.length && globs.length) {