Panics on bare repositories

Describe the bug
Unable to execute gitui inside a bare repo.

To Reproduce
Steps to reproduce the behavior:

  1. git init --bare test-repo
  2. cd test-repo
  3. gitui
  4. See panic message

Expected behavior
May be a message: Sorry no support for bare repos

Desktop (please complete the following information):

  • OS: Kubuntu 20.04

Additional context

  • Shell: Bash