Skip to content

Open Git Repositories: catch trust-related issues and offer to open without these checks. #9913

@Byron

Description

@Byron

Version

0.15.12

Operating System

Windows

Describe the issue

Related to this issue in gitoxide.

Instead of failing, we should catch that error and communicate the issue to the frontend via gibutler-error::Code variant. The UI can then prompt the user if we should open the repository with full trust by configuring it with gix::open::Options::with(gix::sec::Trust::Full), which bypasses the failing check.

Alternatively, we could write the configuration for safe.directories so this setting is automatically permanent. However, doing so might be too much. This PR could be a more proper fix for this.

Error is: Couldn't get security information for path.

Workaround

A known workaround would be to allow the failing repository by configuring safe.directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingos:windowsThe Windows platform🦀gitoxide🦀`gitoxide` might help here

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions