Update automate-git.py to support the new Chromium git workflow and functionality similar to automate.py.

git-svn-id: http://chromiumembedded.googlecode.com/svn/trunk/cef3@1675 5089003a-bbd8-11dd-ad1f-f1f9622dbc98