Remove the newline from the output of `git rev-parse` when retrieving the branch HEAD.
Remove the newline from the output of `git rev-parse` when retrieving the branch HEAD.

cpliakas/git-wrapper,cpliakas/git-wrapper