@self-review/core 1.43.3 → 1.43.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1586,6 +1586,7 @@ new file mode 100644
|
|
|
1586
1586
|
|
|
1587
1587
|
// src/git.ts
|
|
1588
1588
|
var execAsync = (0, import_util.promisify)(import_child_process.exec);
|
|
1589
|
+
var execFileAsync = (0, import_util.promisify)(import_child_process.execFile);
|
|
1589
1590
|
function runGitDiff(args) {
|
|
1590
1591
|
try {
|
|
1591
1592
|
try {
|
|
@@ -1602,7 +1603,7 @@ function runGitDiff(args) {
|
|
|
1602
1603
|
);
|
|
1603
1604
|
process.exit(1);
|
|
1604
1605
|
}
|
|
1605
|
-
const result = (0, import_child_process.
|
|
1606
|
+
const result = (0, import_child_process.execFileSync)("git", ["diff", ...args], {
|
|
1606
1607
|
encoding: "utf-8",
|
|
1607
1608
|
maxBuffer: 50 * 1024 * 1024
|
|
1608
1609
|
// 50MB buffer for large diffs
|
|
@@ -1667,7 +1668,7 @@ async function getRepoRootAsync(cwd) {
|
|
|
1667
1668
|
}
|
|
1668
1669
|
async function runGitDiffAsync(args, cwd) {
|
|
1669
1670
|
try {
|
|
1670
|
-
const { stdout } = await
|
|
1671
|
+
const { stdout } = await execFileAsync("git", ["diff", ...args], {
|
|
1671
1672
|
maxBuffer: 50 * 1024 * 1024,
|
|
1672
1673
|
// 50MB buffer
|
|
1673
1674
|
timeout: 3e4,
|