Skip to content

panic / core dump when viewing details on shallow commits #836

@jabra11

Description

@jabra11

Describe the bug

panic: Any { .. }
trace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: start_thread
   7: __GI___clone

Aborted (core dumped)

To Reproduce
git clone --depth 1 https://github.com/extrawurst/gitui (note the --depth 1 flag)
./gitui -> go to the log tab -> press enter to view details on the shallow commit

Expected behavior
Show details of the commit

Context (please complete the following information):
OS: Arch Linux
Kernel: x86_64 Linux 5.13.9-arch1-1
GitUI Version: 0.16.2
Rust version: rustc 1.54.0

Additional context
https://git-scm.com/docs/shallow

Useful, for example, when cloning plugins for vim (since only the last commit is fetched, it's faster that way)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions