Instruct Git to only push the current branch when running git push.
Only use sudo with RubyGems if the gem directory exists.