diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-11-20 21:23:24 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2022-11-20 21:23:28 -0800 |
commit | 1753cf59cc2fd30109c84d1a3ea56d226a9bcd75 (patch) | |
tree | b8d6826eca8fab8b895af92f8cff3e7c7db8a46e /tool | |
parent | db8ff237c7987d995dff277d8859582760bec5d8 (diff) |
Fix a broken interpolation #{head}
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/sync_default_gems.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 0feb5a80b7..9091e260a8 100755 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -1,5 +1,6 @@ #!/usr/bin/env ruby -# sync upstream github repositories to ruby repository +# Sync upstream github repositories to ruby repository. +# See `tool/sync_default_gems.rb --help` for how to use this. require 'fileutils' include FileUtils @@ -559,7 +560,7 @@ def sync_default_gems_with_commits(gem, ranges, edit: nil) head = `git log --format=%H -1 HEAD`.chomp system(*%w"git reset --quiet HEAD~ --") amend = replace_rdoc_ref_all - system(*%w"git reset --quiet #{head} --") + system(*%W"git reset --quiet #{head} --") if amend `git commit --amend --no-edit --all` end |