-
Notifications
You must be signed in to change notification settings - Fork 533
Fix hash keys in #describe #415
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
Conversation
Anyone? Please let me know if you need further input - this should be an easy fix. |
Currently, the symbolized key is checked for presence and then the value for the non-symbolized one is used. This works for Hashes with indifferent access (like in rails etc.) but fails for a simple example like ```ruby Git.open(".").describe("HEAD", abbrev: 0) => Git::GitExecuteError (git '--git-dir=/folder/to/repo/.git' '--work-tree=/folder/to/repo' describe '--abbrev=' 'HEAD' 2>&1:error: option `abbrev' expects a numerical value) ``` Changed all references to the symbolized version (since the method signature suggests `@param [{Symbol=>Object}]`). Signed-off-by: Jonas Mueller <jonas-mueller@mailbox.org>
Ping?! |
Is this repository still maintained? |
Uses symbolized opts keys for #describe. See ruby-git/ruby-git#415
Ping |
Monthly ping |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Ping |
Implementation and tests required to ensure that command output encod…
Ping |
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.
Looks like this change was already merged to master.
Currently, the symbolized key is checked for presence and then the value for the non-symbolized one is used. This works for Hashes with indifferent access (like in rails etc.) but fails for a simple example like
Changed all references to the symbolized version (since the method signature suggests
@param [{Symbol=>Object}]
).Your checklist for this pull request
🚨Please review the guidelines for contributing to this repository.
Description
Please describe your pull request.