Skip to content

Commit

Permalink
corrected test for gpg extension in hg
Browse files Browse the repository at this point in the history
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
wrzasa committed Mar 15, 2013
1 parent 214888c commit 916e305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubygems/tasks/scm/tag.rb
Expand Up @@ -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
Expand Down

0 comments on commit 916e305

Please sign in to comment.