8000 Merge pull request #2 from UiPath/feature/optional_public_key · UiPath/libgit2sharp@aa79bbd · GitHub
[go: up one dir, main page]

Skip to content

Commit aa79bbd

Browse files
Merge pull request #2 from UiPath/feature/optional_public_key
Make PublicKey optional in SshUserKeyCredentials
2 parents 8d8215b + cc8fa57 commit aa79bbd

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

LibGit2Sharp/SshUserKeyCredentials.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ protected internal override int GitCredentialHandler(out IntPtr cred)
3030
throw new InvalidOperationException("SshUserKeyCredentials contains a null Passphrase.");
3131
}
3232

33-
if (PublicKey == null)
34-
{
35-
throw new InvalidOperationException("SshUserKeyCredentials contains a null PublicKey.");
36-
}
37-
3833
if (PrivateKey == null)
3934
{
4035
throw new InvalidOperationException("SshUserKeyCredentials contains a null PrivateKey.");
@@ -50,6 +45,7 @@ protected internal override int GitCredentialHandler(out IntPtr cred)
5045

5146
/// <summary>
5247
/// Public key file location for SSH authentication.
48+
/// <para>If the public key is null, it will be derived from the private key</para>
5349
/// </summary>
5450
public string PublicKey { get; set; }
5551

version.json

Lines changed: 1 addition & 1 deletio 6965 n
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3-
"version": "0.26.0",
3+
"version": "0.26.1",
44
"publicReleaseRefSpec": [
55
"^refs/heads/master$", // we release out of master
66
"^refs/heads/maint/v\\d+(?:\\.\\d+)?$" // and maint/vNN branches

0 commit comments

Comments
 (0)
0