{"action":"created","issue":{"url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/1351","repository_url":"https://api.github.com/repos/libgit2/libgit2sharp","labels_url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/1351/labels{/name}","comments_url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/1351/comments","events_url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/1351/events","html_url":"https://github.com/libgit2/libgit2sharp/issues/1351","id":170173021,"number":1351,"title":"git_revwalk_next fails with NotFoundException","user":{"login":"asbjornu","id":12283,"avatar_url":"https://avatars.githubusercontent.com/u/12283?v=3","gravatar_id":"","url":"https://api.github.com/users/asbjornu","html_url":"https://github.com/asbjornu","followers_url":"https://api.github.com/users/asbjornu/followers","following_url":"https://api.github.com/users/asbjornu/following{/other_user}","gists_url":"https://api.github.com/users/asbjornu/gists{/gist_id}","starred_url":"https://api.github.com/users/asbjornu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asbjornu/subscriptions","organizations_url":"https://api.github.com/users/asbjornu/orgs","repos_url":"https://api.github.com/users/asbjornu/repos","events_url":"https://api.github.com/users/asbjornu/events{/privacy}","received_events_url":"https://api.github.com/users/asbjornu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-09T13:57:40Z","updated_at":"2016-08-09T14:17:53Z","closed_at":null,"body":"On the master branch of [homebrew-core](https://github.com/Homebrew/homebrew-core), running GitVersion fails with the following exception within LibGit2Sharp:\r\n\r\n```c#\r\nERROR [08/09/16 15:53:38:60] An unexpected error occurred:\r\nLibGit2Sharp.NotFoundException: Object not found - no match for id (9dfe40d43a337f7107f7343eec2de38c4719141)\r\n  at LibGit2Sharp.Core.Ensure.HandleError (Int32 result) <0x110be5340 + 0x0014e> in <filename unknown>:0\r\n  at LibGit2Sharp.Core.Ensure.ZeroResult (Int32 result) <0x10cb617d0 + 0x0001f> in <filename unknown>:0\r\n  at LibGit2Sharp.Core.Proxy.git_revwalk_next (LibGit2Sharp.Core.Handles.RevWalkerHandle walker) <0x110be36e0 + 0x00049> in <filename unknown>:0\r\n  at LibGit2Sharp.CommitLog+CommitEnumerator.MoveNext () <0x110be3630 + 0x00020> in <filename unknown>:0\r\n  at System.Linq.Enumerable.First[TSource] (IEnumerable`1 source, System.Func`2 predicate) <0x110be0540 + 0x000d2> in <filename unknown>:0\r\n  at GitVersion.VersionCalculation.FallbackBaseVersionStrategy+<GetVersions>d__0.MoveNext () <0x110be0030 + 0x00213> in <filename unknown>:0\r\n  at System.Linq.Enumerable+<SelectManyIterator>c__Iterator2`2[TSource,TResult].MoveNext () <0x110bda880 + 0x00356> in <filename unknown>:0\r\n  at System.Linq.Enumerable+WhereSelectEnumerableIterator`2[TSource,TResult].MoveNext () <0x110bdf7f0 + 0x001b5> in <filename unknown>:0\r\n  at System.Collections.Generic.List`1[T]..ctor (IEnumerable`1 collection) <0x10e3c5ca0 + 0x001fb> in <filename unknown>:0\r\n  at System.Linq.Enumerable.ToList[TSource] (IEnumerable`1 source) <0x10c962270 + 0x00083> in <filename unknown>:0\r\n  at GitVersion.VersionCalculation.BaseVersionCalculator.GetBaseVersion (GitVersion.GitVersionContext context) <0x110bde3c0 + 0x0030b> in <filename unknown>:0\r\n  at GitVersion.VersionCalculation.NextVersionCalculator.FindVersion (GitVersion.GitVersionContext context) <0x110bddf40 + 0x0011c> in <filename unknown>:0\r\n  at GitVersion.GitVersionFinder.FindVersion (GitVersion.GitVersionContext context) <0x110bdced0 + 0x0012a> in <filename unknown>:0\r\n  at GitVersion.ExecuteCore+<>c__DisplayClass6_0.<ExecuteInternal>b__0 (IRepository repo) <0x110b28240 + 0x0008a> in <filename unknown>:0\r\n  at GitVersion.GitPreparer.WithRepository[TResult] (System.Func`2 action) <0x10cbc1d50 + 0x0007a> in <filename unknown>:0\r\n  at GitVersion.ExecuteCore.ExecuteInternal (System.String targetBranch, System.String commitId, GitVersion.GitPreparer gitPreparer, IBuildServer buildServer, GitVersion.Config overrideConfig) <0x110b26370 + 0x00213> in <filename unknown>:0\r\n  at GitVersion.ExecuteCore.ExecuteGitVersion (System.String targetUrl, System.String dynamicRepositoryLocation, GitVersion.Authentication authentication, System.String targetBranch, Boolean noFetch, System.String workingDirectory, System.String commitId, GitVersion.Config overrideConfig) <0x10cbbc6a0 + 0x00361> in <filename unknown>:0\r\n  at GitVersion.SpecifiedArgumentRunner.Run (GitVersion.Arguments arguments, IFileSystem fileSystem) <0x10cbbc000 + 0x0017e> in <filename unknown>:0\r\n  at GitVersion.Program.VerifyArgumentsAndRun () <0x10c961280 + 0x0044c> in <filename unknown>:0\r\n```\r\n\r\n**Environment:**\r\n* Mac OS X `10.11.6`\r\n* Mono `4.4.1`\r\n* GitVersion `3.6.2`\r\n\r\nIdeas?"},"comment":{"url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/comments/238567235","html_url":"https://github.com/libgit2/libgit2sharp/issues/1351#issuecomment-238567235","issue_url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/1351","id":238567235,"user":{"login":"ethomson","id":1130014,"avatar_url":"https://avatars.githubusercontent.com/u/1130014?v=3","gravatar_id":"","url":"https://api.github.com/users/ethomson","html_url":"https://github.com/ethomson","followers_url":"https://api.github.com/users/ethomson/followers","following_url":"https://api.github.com/users/ethomson/following{/other_user}","gists_url":"https://api.github.com/users/ethomson/gists{/gist_id}","starred_url":"https://api.github.com/users/ethomson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethomson/subscriptions","organizations_url":"https://api.github.com/users/ethomson/orgs","repos_url":"https://api.github.com/users/ethomson/repos","events_url":"https://api.github.com/users/ethomson/events{/privacy}","received_events_url":"https://api.github.com/users/ethomson/received_events","type":"User","site_admin":true},"created_at":"2016-08-09T14:17:53Z","updated_at":"2016-08-09T14:17:53Z","body":"I didn't know that homebrew did a shallow clone, but that sounds like something that a package manager might want to do.  Unfortunately, yes, it is expected - at this time libgit2 does not support shallow clones."}}
{"actor":{"display_login":"ethomson"}}