origin/HEAD is not valid; use origin/master for latest when branch == 'master'
Using rev-parse to determine branch name of HEAD for on_branch? method