Closed coffebar closed 1 year ago
oc
┌ open-commit │ ◇ 1 staged files: .config/hyprland/hyprland.conf /home/abc/.node_modules/lib/node_modules/opencommit/out/cli.cjs:17320 error = new Error(message); ^ Error: Command failed with exit code 128: git diff --staged .config/hyprland/hyprland. conf fatal: ambiguous argument '.config/hyprland/hyprland.conf': unknown revision or path n ot in the working tree. Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]' at makeError (/home/abc/.node_modules/lib/node_modules/opencommit/out/cli.cjs:1732 0:13) at handlePromise (/home/abc/.node_modules/lib/node_modules/opencommit/out/cli.cjs: 17635:29) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async getDiff (/home/abc/.node_modules/lib/node_modules/opencommit/out/cli.cjs: 17724:28) at async commit (/home/abc/.node_modules/lib/node_modules/opencommit/out/cli.cjs:2 0939:38) { shortMessage: 'Command failed with exit code 128: git diff --staged .config/hyprland /hyprland.conf', command: 'git diff --staged .config/hyprland/hyprland.conf', escapedCommand: 'git diff --staged ".config/hyprland/hyprland.conf"', exitCode: 128, signal: undefined, signalDescription: undefined, stdout: '', stderr: "fatal: ambiguous argument '.config/hyprland/hyprland.conf': unknown revisio n or path not in the working tree.\n" + "Use '--' to separate paths from revisions, like this:\n" + "'git <command> [<revision>...] -- [<file>...]'", failed: true, timedOut: false, isCanceled: false, killed: false } Node.js v19.8.1
# env GIT_WORK_TREE=/home/abc GIT_DIR=/home/abc/dotfiles
thanks! should be fixed in new version, update with npm i -g opencommit
npm i -g opencommit
oc
POV