-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: lerna diff
for repositories without commits
#124
fix: lerna diff
for repositories without commits
#124
Conversation
516fcd8
to
71b16cb
Compare
|
||
@logger.logifySync | ||
static hasCommit() { | ||
return ChildProcessUtilities.execSync("git log"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make this return a boolean instead:
!!ChildProcessUtilities.execSync("git log");
Thanks for tackling this @joscha |
@thejameskyle I made the changes, let me know if that works for you. I can also squash the commits in case you'd like that. |
We can squash in the merge now so it's ok |
Thanks! |
Thank you for merging - one thing I thought with the errors we have now in quite a few places - would you be happy to integrate a PR that unifies and cleans up the errors using https://www.npmjs.com/package/define-error ? |
Yeah, errors and error handling are definitely places I want to be focusing on. I'm not sure what that package would do to help though., |
I think exporting the errors and making them importable at the right places would be the first step. The package itself only makes sure that there is a proper stack trace attached. |
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lerna diff
on a repository without any commits fails due to:currently.