Skip to content

Unable to completely override User-Agent #6780

@wfjsw

Description

@wfjsw

I want to make libgit2 use standard git-for-windows UA so that the firewall do not complain.
#3448 apparently prohibits me from doing this.

Reproduction steps

GlobalSettings.SetUserAgent("git/2.43.0.windows.1");

Expected behavior

User-Agent: git/2.43.0.windows.1

Actual behavior

User-Agent: git/2.0 (git/2.43.0.windows.1)

Version of libgit2 (release number or SHA1)

git2-e632535

Operating system(s) tested

Windows with LibGit2Sharp

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