[Misc] Make the git pull work when on a branch