libgit2sharp
libgit2sharp copied to clipboard
Git + .NET = ❤
A great option to be added is: Commands.Run(string repoUrl, params string[] commands) method. Examples: ``` Commands.Run(@"D:\repo", $"ls-remote {fromRepo} refs/heads/master"); Commands.Run(@"D:\repo", $"fetch --force --progress {fromRepo} master"); Commands.Run(@"file:///D:/repo", $"checkout master"); Commands.Run(@"file://localhost/repo", $"reset...
### Reproduction steps 1. Create `bare` repository 2. Clone that 3. Try to fetch using `Commands.Fetch` ### Expected behavior `Commands.Fetch` should work as `git fetch` works ### Actual behavior >...
You are opening a _bug report_ against the LibGit2Sharp project: we use GitHub Issues for tracking bug reports and feature requests. If you have a question about an API or...
I am using .NET 5.0 Using libgit2sharp 0.26.0, I've written code to clone , create a new branch, change some files, commit and push branch to bitbucket. Now I need...
I use this code: GitRepo = new Repository(Repository.Discover(SolutionDir)); string fpath = folder.Replace(SolutionDir, string.Empty).Replace("\\", "/").TrimStart('/'); foreach (var c in GitRepo.Commits.QueryBy(fpath).Take(1)) { revisionsList.Add(folder.Split(Path.DirectorySeparatorChar).Last(), c.Commit.Committer.When.ToUnixTimeSeconds()); } The GitRepo.Commits.QueryBy(fpath) fails for some folders on...
This adds a `GlobalSettings.OwnerValidation` property which wraps `git_libgit2_opts(GIT_OPT_[GET/SET]_OWNER_VALIDATION)`. I needed to disable this (I'm using a safe environment), and I had to do this through reflection, but I suppose other...
### Reproduction steps try to use a IRepository as parameter to Commands.Pull  ### Expected behavior I expect it to work ### Actual behavior I can't use the interface cause...
Rather than doing string parsing, I'd prefer having diff hunks available to mess with.
git 2.40.0 index.skipHash incompatible with libgit2sharp (please update libgit2 from 1.7.1 to 1.8.0)
Git added this feature in 2.40.0, and I'm increasingly encountering repos with this feature enabled that libgit2sharp is unable to process. Retrieving status throws an exception from the native libgit2...
### Reproduction steps Upgraded from v0.26.2 to v0.30.0, had compilation issues. Fair enough, we were quite out of date. We changed the credentials provider as this was now located in...