Skip to content

Commit 1753cf5

Browse files
committed
Fix a broken interpolation #{head}
1 parent db8ff23 commit 1753cf5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tool/sync_default_gems.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env ruby
2-
# sync upstream github repositories to ruby repository
2+
# Sync upstream github repositories to ruby repository.
3+
# See `tool/sync_default_gems.rb --help` for how to use this.
34

45
require 'fileutils'
56
include FileUtils
@@ -559,7 +560,7 @@ def sync_default_gems_with_commits(gem, ranges, edit: nil)
559560
head = `git log --format=%H -1 HEAD`.chomp
560561
system(*%w"git reset --quiet HEAD~ --")
561562
amend = replace_rdoc_ref_all
562-
system(*%w"git reset --quiet #{head} --")
563+
system(*%W"git reset --quiet #{head} --")
563564
if amend
564565
`git commit --amend --no-edit --all`
565566
end

0 commit comments

Comments
 (0)