Skip to content

Panic receiving pack if fetch interrupted #1352

Closed
@LuaKT

Description

@LuaKT

Current behavior 😯

Hi, I'm seeing a very occasional panic when fetching a repository and I interrupt it part way through receiving.

thread '<unnamed>' panicked at /home/lua/.cargo/git/checkouts/gitoxide-9add020dee14babf/035ca54/gix/src/remote/connection/fetch/receive_pack.rs:290:70:
called `Result::unwrap()` on an `Err` value: Custom { kind: Other, error: "interrupted by user" }

Unwrap is called here https://github.com/Byron/gitoxide/blob/v0.35.0/gix/src/remote/connection/fetch/receive_pack.rs#L290, is there any need to unwrap here or can errors just be ignored?

Thanks!

Expected behavior 🤔

No response

Git behavior

No response

Steps to reproduce 🕹

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    acknowledgedan issue is accepted as shortcoming to be fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions