I'm trying to connect to a repo:
using(var Git = new Repository(
Repository.Clone("https://github.com/wikimedia/mediawiki-core", "tmp")
)){
foreach(var Commit in Git.Commits)
{
MessageBox.Show(Commit.Author.Name);
}
}
It connects ok (as in, if I change the URL I get the expected exception), but no MessageBox
es are shown - why? This should be simple.
Few things to consider regarding your question:
Repository.Clone()
) then to perform some work against the local repository.Clone()
method with a transfer progress handler.The code below (greatly inspired from your own code) clones a remote repository, outputting the current clone progress to the console, and enumerates the commits reachable from
HEAD
.It's been successfully tested against LibGit2Sharp v0.14.1 NuGet package.
When being run, it outputs the following