sequencer: refactor transform_todos() to work on a todo_list
[gitweb.git] / environment.c
index 346559770773e923766c06593ada84c72815061f..0e37741d838256d196b2ec9f3ca4e54395c66d31 100644 (file)
@@ -274,9 +274,9 @@ const char *get_git_work_tree(void)
 
 char *get_object_directory(void)
 {
-       if (!the_repository->objects->objectdir)
+       if (!the_repository->objects->odb)
                BUG("git environment hasn't been setup");
-       return the_repository->objects->objectdir;
+       return the_repository->objects->odb->path;
 }
 
 int odb_mkstemp(struct strbuf *temp_filename, const char *pattern)