Skip to content

Commit

Permalink
fix: improve git binary error (#3945)
Browse files Browse the repository at this point in the history
  • Loading branch information
poteirard committed Feb 5, 2024
1 parent b2b8b7d commit 7637972
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libs/core/src/lib/command/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,10 @@ export class Command<T extends CommandConfigOptions = CommandConfigOptions> {

runValidations() {
if ((this.options.since !== undefined || this.requiresGit) && !isGitInitialized(this.project.rootPath)) {
throw new ValidationError("ENOGIT", "The git binary was not found, or this is not a git repository.");
throw new ValidationError(
"ENOGIT",
"The git binary was not found, this is not a git repository, or you git doesn't have the right ownership. Run `git rev-parse` to get more details."
);
}

if (this.options.independent && !this.project.isIndependent()) {
Expand Down

0 comments on commit 7637972

Please sign in to comment.