-
Notifications
You must be signed in to change notification settings - Fork 9
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
Checking out to specific commit (hash) works as it should. #35
Conversation
@@ -55,19 +55,28 @@ module.exports = { | |||
if ( stdout ) { | |||
throw new Error( `Package "${ data.packageName }" has uncommitted changes. Aborted.` ); | |||
} | |||
} ) | |||
.then( () => { | |||
|
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.
I don't like merging these callbacks. The log handling is a separate task which, btw, should be done differently (related to #13, but not exactly this).
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.
Fixed.
I'll work on this. |
OK, turns out that the logging mechanism is broken. The issue is that the exec command logs the error and rejects the promise with a logger instance. That logger instance is then passed to the update command which don't expect it. So, this issue must be solved in #13. The caller must not need to care about logs and rejected promise should always be rejected with an error, not some custom object. |
Fixes: #34.