Skip to content

Commit a4fa9bb

Browse files
committed
chores: minor changes
1 parent 9aae89f commit a4fa9bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
7777
exports.getChangedFiles = void 0;
7878
const child_process_1 = __nccwpck_require__(2081);
7979
const getChangedFiles = async (base, head) => {
80-
const command = `git diff --name-only ${base} ${head}`;
80+
const command = `git diff --name-only ${base}..${head}`;
8181
console.log({ command, base, head });
8282
return new Promise((resolve, reject) => {
83-
(0, child_process_1.exec)(command, (error, stdout) => {
83+
(0, child_process_1.exec)(command.trim(), (error, stdout) => {
8484
if (error) {
8585
reject(error.message);
8686
}

0 commit comments

Comments
 (0)