git: fix variable leaks
_lp_git_branch: faster (less external programs calls)
Merge pull request #88 from dolmen/fix/git

More efficient git parsing (2)