sodapopcan / vim-twiggy

Git branch management for Vim
280 stars 15 forks source link

Don't crash on commits with empty messages #48

Closed giuseppelettieri closed 2 years ago

giuseppelettieri commented 2 years ago

Ask split() to keep empty fields while parsing branch information.

Before this patch, twiggy would crash while trying to access pieces[5] if the latest commit of a branch had an empty message.

giuseppelettieri commented 2 years ago

I do have this problem with some old branches in a student project. They somehow managed to push empty commit messages.

sodapopcan commented 2 years ago

Thanks!