aboutsummaryrefslogtreecommitdiffstats
path: root/repo.c
diff options
context:
space:
mode:
Diffstat (limited to 'repo.c')
-rw-r--r--repo.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/repo.c b/repo.c
index 35455f2..9623fb5 100644
--- a/repo.c
+++ b/repo.c
@@ -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)