Skip to content
Browse files

corrected test for gpg extension in hg

At least in mercurial 2.4.2 to check if gpg extension is installed one should do `hg showconfig extensions.hgext.gpg` and if it returns anything, but empty string, the extension is enabled. Even "\n" indicates that extension is turned on, so chomp is invalid.
  • Loading branch information...
1 parent 214888c commit 916e305b9a494ca1aa09c06ec6c7d6d038be2fb1 @wrzasa wrzasa committed Mar 15, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rubygems/tasks/scm/tag.rb
View
2 lib/rubygems/tasks/scm/tag.rb
@@ -116,7 +116,7 @@ def sign?
when :git
!`git config user.signingkey`.chomp.empty?
when :hg
- !`hg showconfig extensions hgext gpg`.chomp.empty?
+ !`hg showconfig extensions.hgext.gpg`.empty?
else
false
end

0 comments on commit 916e305

Please sign in to comment.
Something went wrong with that request. Please try again.