-
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
Fix "can't modify frozen string" errors when pods are integrated using the branch
option (#10920)
#119
Conversation
lib/cocoapods-downloader/git.rb
Outdated
@@ -52,7 +52,7 @@ def self.preprocess_options(options) | |||
# | |||
def self.commit_from_ls_remote(output, branch_name) | |||
return nil if branch_name.nil? | |||
encoded_branch_name = branch_name.force_encoding(Encoding::ASCII_8BIT) | |||
encoded_branch_name = branch_name.encode(Encoding::ASCII_8BIT) |
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.
let me see what I can do because I think we do not want to change the underlying encoding of this string.
Also lets point to |
I think this fix will suffice. |
@Buju77 lets make sure we point to |
CHANGELOG.md
Outdated
@@ -8,8 +8,9 @@ | |||
|
|||
##### Bug Fixes | |||
|
|||
* None. | |||
|
|||
* Fix "can't modify frozen string" errors when pods are integrated using the `branch` option |
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.
nit: please add two empty spaces at the end of this line for markdown formatting.
…g the `branch` option (#10920)
ok, I've now rebased on top of |
@Buju77 I think you are right and we can fix it your way |
oh well we can land this now! :D |
I will ship 1.5.1 of cocoapods-downloader |
@dnkoutso thank you very much! 👍 |
this PR fixes CocoaPods/CocoaPods#10920