Github crashes with max branch names

I was playing around with max branch name length allowed by Github. It seems it crashes for unreasonable branch name length. Ideally, it should have been handled long branch names gracefully, probably with informative error message to user.

Test branch name:

sfjslfsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssddddddddddddddddddddddddddddddddddddddddfffffffffffffffffffffffffffffffssssssssssssssssssssssssssssssssssddddddddddddddddddddddddddddddddddddddddddfffffffffffffffffffffffffffffffffffffffffffffffffffffffsssssssssssssssssssssssssssssssssfjslfsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssddddddddddddddddddddddddddddddddddddddddfffffffffffffffffffffffffffffffssssssssssssssssssssssssssssssssssddddddddddddddddddddddddddddddddddddddddddfffffffffffffffffffffffffffffffffffffffffffffffffffffffssssssssssssssssssssssssssssssss

Please let me know your thoughts.