Current branch can be obtained cleanly with git symbolic-ref

No need to use awk. I found the symbolic-ref usage the other day for one of my own helper scripts.