diff options
Diffstat (limited to 'repo.c')
-rw-r--r-- | repo.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -245,6 +245,9 @@ void repo_walk_files(struct config *cfg, struct config_repo *repo, uint32_t url, slprintf(spec, sizeof(spec), "%s:%s", oid_curr, MAIL); ret = git_revparse_single(&object, repo->git, spec); + if (ret == GIT_ENOTFOUND) + goto skip; + if (ret || git_object_type(object) != GIT_OBJECT_BLOB) panic_git("Cannot revparse object"); @@ -253,9 +256,9 @@ void repo_walk_files(struct config *cfg, struct config_repo *repo, uint32_t url, (size_t)git_blob_rawsize(blob)); git_object_free(object); - git_commit_free(commit); - count++; +skip: + git_commit_free(commit); } if (it && it != GIT_ITEROVER && !count) |