-
Notifications
You must be signed in to change notification settings - Fork 72
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
$CHILD_STATUS is nil in some Ruby versions without require "English" #28
Comments
@fabiopelosin are you sure .to_i is required? A big downside to that approach is that if the symbol is nil (eg. when $CHILD_STATUS does not exist as a variable) then .to_i will return zero and thus indicate success.
If you do need to force to integer for comparison you should probably check for nil first also. I know |
@aufflick Thanks... I added the I will fix it... thanks! |
@fabiopelosin I don’t particularly like them, but can we just use the default Ruby globals instead? I.e. |
@alloy I was planning to go back to |
👍 |
See CocoaPods/CocoaPods#2225
This causes
ref_exists?
to always return false.I don't know why it doesn't cause other issues elsewhere, but the nicely named $CHILD_STATUS global var in ruby 1.9 and later (or something, not exactly sure of the circumstances). It's fixed if you replace$CHILD_STATUS with the timeless $ ? or place require "English" at the top of git.rb (although that may introduce a new ruby version dependency, I'm not familiar with when it was introduced).
The text was updated successfully, but these errors were encountered: