aboutsummaryrefslogtreecommitdiffstats
path: root/odb.c
diff options
context:
space:
mode:
Diffstat (limited to 'odb.c')
-rw-r--r--odb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/odb.c b/odb.c
index 0464d7f54a..240fc62ca2 100644
--- a/odb.c
+++ b/odb.c
@@ -448,14 +448,14 @@ out:
return ref_git;
}
-struct odb_source *find_odb(struct repository *r, const char *obj_dir)
+struct odb_source *odb_find_source(struct object_database *odb, const char *obj_dir)
{
struct odb_source *source;
char *obj_dir_real = real_pathdup(obj_dir, 1);
struct strbuf odb_path_real = STRBUF_INIT;
- prepare_alt_odb(r);
- for (source = r->objects->sources; source; source = source->next) {
+ prepare_alt_odb(odb->repo);
+ for (source = odb->sources; source; source = source->next) {
strbuf_realpath(&odb_path_real, source->path, 1);
if (!strcmp(obj_dir_real, odb_path_real.buf))
break;