We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
On the latest new version of Ruby git gem, I see this message:
/Users/emmasax/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/git-1.9.0/lib/git/lib.rb:663: warning: string literal in condition
This error is pointing to this line:
ruby-git/lib/git/lib.rb
Line 663 in 07a1167
Looking at the error (StackOverflow describes what the warning message means here), it seems the easiest way to fix it is to change that line to:
arr_opts << '--gpg-sign' if opts[:gpg_sign] && (opts[:gpg_sign] == true || opts[:gpg_sign] == "--gpg-sign=#{opts[:gpg_sign]}")
Using the newest version of the git Ruby gem with Ruby 3.0.1:
$ irb irb(main):002:0> require 'git' /Users/emmasax/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/git-1.9.0/lib/git/lib.rb:663: warning: string literal in condition => true
$ irb irb(main):002:0> require 'git' => true
See the Steps to reproduce section.
Steps to reproduce
The text was updated successfully, but these errors were encountered:
Thank you for the great error report. I noticed the same warning and added a fix for it in PR #525. I'll cut a new release soon.
Sorry, something went wrong.
This has been fixed this in git-1.9.1:
$ gem install git -v 1.9.1 Fetching git-1.9.1.gem Successfully installed git-1.9.1 Parsing documentation for git-1.9.1 Installing ri documentation for git-1.9.1 Done installing documentation for git after 0 seconds 1 gem installed $ irb 3.0.1 :001 > require 'git' => true 3.0.1 :002 >
Thank you @jcouball!
No branches or pull requests
Subject of the issue
On the latest new version of Ruby git gem, I see this message:
This error is pointing to this line:
ruby-git/lib/git/lib.rb
Line 663 in 07a1167
Looking at the error (StackOverflow describes what the warning message means here), it seems the easiest way to fix it is to change that line to:
Your environment
Steps to reproduce
Using the newest version of the git Ruby gem with Ruby 3.0.1:
Expected behaviour
Actual behaviour
See the
Steps to reproduce
section.The text was updated successfully, but these errors were encountered: