hermes-git 0.3.6 → 0.3.7
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.js +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -38784,9 +38784,10 @@ function buildInstallCommand(pm) {
|
|
|
38784
38784
|
}
|
|
38785
38785
|
|
|
38786
38786
|
// src/commands/commit.ts
|
|
38787
|
-
import { exec as exec6 } from "child_process";
|
|
38787
|
+
import { exec as exec6, execFile } from "child_process";
|
|
38788
38788
|
import { promisify as promisify6 } from "util";
|
|
38789
38789
|
var execAsync6 = promisify6(exec6);
|
|
38790
|
+
var execFileAsync = promisify6(execFile);
|
|
38790
38791
|
async function getStagedFiles2() {
|
|
38791
38792
|
try {
|
|
38792
38793
|
const { stdout } = await execAsync6("git diff --cached --name-status");
|
|
@@ -39084,7 +39085,7 @@ function commitCommand(program2) {
|
|
|
39084
39085
|
|
|
39085
39086
|
${finalBody}` : finalMessage;
|
|
39086
39087
|
displayStep(`git commit -m "${finalMessage}"${finalBody ? " (with body)" : ""}`);
|
|
39087
|
-
await
|
|
39088
|
+
await execFileAsync("git", ["commit", "-m", fullMessage]);
|
|
39088
39089
|
displaySuccess("Committed!");
|
|
39089
39090
|
const { stdout: hash } = await execAsync6("git rev-parse --short HEAD");
|
|
39090
39091
|
console.log(source_default.dim(` ${hash.trim()} ${finalMessage}
|