opencommit icon indicating copy to clipboard operation
opencommit copied to clipboard

Disambiguate error message when running from non-git repo

Open NeemaB opened this issue 3 weeks ago • 0 comments
trafficstars

Add the assertGitRepo() check earlier in the commit pipeline to display:

—  ✖ Error: Command failed with exit code 128: git rev-parse
fatal: not a git repository (or any of the parent directories): .git

instead of:

|
—  No changes detected

feat(commit.ts): add error handling for assertGitRepo in top level commit to improve user feedback. fix(commit.ts: move assertGitRepo call into try/catch block to handle appropriately

NeemaB avatar Oct 27 '25 20:10 NeemaB