vcs: Make git pull more robust