sync_default_gems.rb: Continue if files added to the toplevel removed

This commit is contained in:
Nobuyoshi Nakada 2023-08-29 10:20:41 +09:00
parent a6db6b150f
commit c4fc9477aa
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -628,7 +628,9 @@ module SyncDefaultGems
`git reset HEAD~ --` && `git checkout .` && `git clean -fd`
puts "Skip commit #{sha} only for tools or toplevel"
return false
elsif !system(*%W"git commit --amend --no-edit --", *toplevels, *tools)
elsif system(*%W"git commit --amend --no-edit --", *toplevels, *tools)
return true
else
`git reset HEAD~ --` && `git checkout .` && `git clean -fd`
return nil
end