diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 4451a4ed48..504c3b1980 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -446,12 +446,12 @@ def update_default_gems(gem) end `git fetch ruby-core master --no-tags` unless `git branch`.match(/ruby\-core/) - `git co ruby-core/master` + `git checkout ruby-core/master` `git branch ruby-core` end - `git co ruby-core` + `git checkout ruby-core` `git rebase ruby-core/master` - `git co master` + `git checkout master` `git fetch origin master` `git rebase origin/master` end