501 questions
2
votes
0
answers
57
views
How to use an SSH key with a passphrase for credentials in LibGit2Sharp v0.31.0?
I am using the LibGit2Sharp v0.31.0 release and trying to perform Git operations (like clone or fetch) over the SSH protocol.
According to the release information, SSH is now supported through libgit2'...
0
votes
1
answer
56
views
ClickOnce keeps including .so files despite being excluded in .csproj — how to permanently prevent this?
I'm publishing a .NET Framework 4.8 application using ClickOnce, and I have a persistent issue with LibGit2Sharp.NativeBinaries.
Every time I build and publish, files like libgit2-3f4182d.so.deploy ...
0
votes
0
answers
153
views
How to bypass LibGit2Sharp CertificateCheck (or make SSL work)?
I'm trying to clone a repository using a .NET console app. The git server is behind a kubernetes ingress.
When trying to clone it using cmdline, it is working fine.
However, when I try to clone the ...
1
vote
1
answer
296
views
How can I configure libgit2sharp ssh authentication within an IIS, ASP.NET MVC, C# application?
I am using libgit2sharp within an ASP.NET MVC application writtein in C# and running on IIS v.10.0 (Windows Server 2019). It is working well to execute git commands against the local server's git ...
0
votes
0
answers
20
views
Not able to get the OnPushError handler triggered with libgit2sharp
We are using the libgit2sharp library to run git commands on a repository and when there is a remote failure on pushing the git commit, the OnPushError handler doesn't get triggered.
using (var repo =...
0
votes
2
answers
71
views
How to merge a branch from a repo to a branch of a fork
Context:
I have a git repo named "gitcode"
I have a forked repo named "gitcode_forked"
And I want to merge the branch "gitcode\develop" into "gitcode_forked\...
0
votes
1
answer
94
views
Skip rebase step on conflict with Libgit2sharp
I am performing a rebase operation with libgit2sharp and it works all nice, but
I and would like to skip a rebase step when a conflict occurs (if the commit has a specific message)
rebaseResult = ...
0
votes
1
answer
1k
views
LibGit2Sharp unknown certificate lookup failure: 16777280
I am using LibGit2Sharp in a custom git client, works fine on my machine but when I run the same code on a different machine with the same credentials I am getting the error:
unknown certificate ...
0
votes
1
answer
120
views
create "master" first branch without commit using libgit2
On shell I can do something below using bash git
mkdir -p /tmp/REPO/ROOT && pushd /tmp/REPO/ROOT && git init && git checkout -b anyName
As summary above init a local git repo ...
3
votes
1
answer
144
views
Dynamically loading _any_ assembly
... where by any assembly I mean also assemblies that depend on assemblies which are wrappers of native libraries.
The Minimal, Reproducible Example for this question is here:
https://gitlab.com/...
0
votes
1
answer
220
views
Fetch single commit with LibGit2[Sharp]
How can I do the equivalent of git fetch origin <CommitHash> with LibGit2Sharp?
It seems the only relevant option for git_remote_fetch are the refspecs so I imagine I need some trickery there, ...
0
votes
1
answer
226
views
Is it possible to download a single file from GitLab using libgit2sharp?
It is possible to clone the repository using 'libgit2sharp'. But I need, only some specific files from the repository. Like search with a filename and then download/save. I tried like below, but ...
-2
votes
1
answer
197
views
Read a line from a file on a specific commit in C#
I am trying to capture a specific line in a file given a FilePath, LineNumber, and the CommitID (Hash) for that file repo I have stored locally. I have it working except for I have not been able to ...
1
vote
1
answer
148
views
How to retrieve the commit pointed to by a tag in LibGit2Sharp?
I initially thought this should be trivial, but how exactly can one get the commit to which a Tag object refers to in LibGit2Sharp?
Naively I thought we could get the sha by using Tag.TargetIdentifier ...
1
vote
0
answers
132
views
How do I create an in-memory blob with libgit2sharp?
I would like to make a diff between two strings with libgit2sharp. The strings hold file contents loaded elsewhere. The diff.Compare-methods only take blobs, and the constructors of the Blobclass are ...