Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic when displaying log of an empty branch #262

Open
damienrg opened this issue Sep 30, 2024 · 0 comments
Open

Panic when displaying log of an empty branch #262

damienrg opened this issue Sep 30, 2024 · 0 comments

Comments

@damienrg
Copy link

Trying to display the log on an empty branch results in a panic.

Steps to reproduce:

  • mkdir example
  • cd example
  • git init
  • gitu (and press l l to show the log of the current branch)

Error message:

panicked at /home/foo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gitu-0.25.0/src/screen/mod.rs:82:36:
index out of bounds: the len is 0 but the index is 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant