Skip to content

Commit

Permalink
Fix a broken interpolation #{head}
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Nov 21, 2022
1 parent db8ff23 commit 1753cf5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1753cf5

Please sign in to comment.