-
Notifications
You must be signed in to change notification settings - Fork 10
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
git promise type must just continue if we have unicode error #100
git promise type must just continue if we have unicode error #100
Conversation
@basvandervlies Thanks. It seems this will work at least for this case since the command being run is |
@olehermanse yes I noticed it to check if there is output. This output can be huge and for me it was a surprise that is crashes with an
Another thing is why do we not check the exit code of the command to report when it failed or is this done differently? |
@olehermanse yes I noticed it to check if there is output. This output can be huge and for me it was a surprise that is crashes with an
Another thing is why do we not check the exit code of the command to report when it failed or is this done differently? |
this will prevent unidcode errors in the `diff` output and will detect changes
@olehermanse Some feedback will be nice!! We have this patch in our prod environment and no issues at all. |
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.
ACK. Your improvement makes sense, and fixes the issue, I was just thinking that these functions and their handling of exit code and output is a bit "iffy" (i.e. might cause problem if more git commands are used in the future), but you did not introduce these issues.
Updating promise-type-git to version 0.2.5 here: cfengine/build-index#516 |
@basvandervlies Thank you for your contribution, it has been released as version 0.2.5 of the module: https://build.cfengine.com/modules/promise-type-git/0.2.5/ |
Your welcome. I already have update the git promise type!. It easy with |
closes #99