branch: limit length of head/branch to 7 chars

Fixes https://github.com/bling/vim-airline/issues/462