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.
1 parent e026bf7 commit cfe2b6bCopy full SHA for cfe2b6b
rakelib/create_release.rake
@@ -66,7 +66,7 @@ module Release
66
end
67
68
def commit_the_changes(message)
69
- sh_in_dir(gem_root, "git commit -am #{message}") unless nothing_to_commit?
+ sh_in_dir(gem_root, "git commit -am '#{Shellwords.escape(message)}'") unless nothing_to_commit?
70
71
72
def nothing_to_commit?
@@ -117,7 +117,7 @@ module Release
117
gem_root,
118
"gem bump --no-commit #{gem_version == '' ? '' : %(--version #{gem_version})}",
119
'bundle install',
120
- (is_dry_run ? nil: "git commit -am 'Bump version to #{gem_version}'")
+ (is_dry_run ? nil: commit_the_changes("Bump version to #{gem_version}"))
121
)
122
123
0 commit comments