var sourceUrl = "https://github.com/WCOMAB/CakeGitTestRepo.git";
var workdirPath = @"C:\augustoproiete\CakeGitTestRepo";
Directory.CreateDirectory(workdirPath);
Repository.Clone(sourceUrl, workdirPath);
Expected behavior
Repository cloned successfully.
Actual behavior
Unhandled Exception: LibGit2Sharp.LibGit2SharpException: The type initializer for 'ManagedHttpSmartSubtransportStream' threw an exception.
Inner Exception:
Operation is not supported on this platform.
at LibGit2Sharp.Core.Ensure.HandleError(Int32 result)
at LibGit2Sharp.Core.Proxy.git_clone(String url, String workdir, GitCloneOptions& opts)
at LibGit2Sharp.Repository.Clone(String sourceUrl, String workdirPath, CloneOptions options)
at ReproCake_Git_151.Program.Main(String[] args)
_Originally discovered and reported by @savornicesei in the Cake.Git project_.
Reproduction steps
Expected behavior
Repository cloned successfully.
Actual behavior
Version of LibGit2Sharp (release number or SHA1)
Operating system(s) tested; .NET runtime tested