Skip to content

Libgit2 cannot be initialized if git is not installed on a windows system #6225

Closed
@edo9300

Description

@edo9300

After the changes in ecbb01f, the function git_win32__find_system_dirs will always fail if it can't find a git installation in PATH or from looking up the registry.

Reproduction steps

Attempt to initialize the library on a system that doesn't have any flavour of git installed.

Expected behavior

Unless other subsystems fails to initialize, the library should initialize correctly even without any git installed.

Actual behavior

The library fails to initialize.

Operating system(s) tested

Any Windows OS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions