hash_algo = hash_algo_by_ptr(transport_get_hash_algo(transport));
initialize_repository_version(hash_algo, the_repository->ref_storage_format, 1);
repo_set_hash_algo(the_repository, hash_algo);
- create_reference_database(the_repository->ref_storage_format, NULL, 1);
+ create_reference_database(NULL, 1);
/*
* Before fetching from the remote, download and install bundle
return ret;
}
-void create_reference_database(enum ref_storage_format ref_storage_format,
- const char *initial_branch, int quiet)
+void create_reference_database(const char *initial_branch, int quiet)
{
struct strbuf err = STRBUF_INIT;
char *to_free = NULL;
int reinit = is_reinit();
- repo_set_ref_storage_format(the_repository, ref_storage_format);
if (ref_store_create_on_disk(get_main_ref_store(the_repository), 0, &err))
die("failed to set up refs db: %s", err.buf);
&repo_fmt, init_shared_repository);
if (!(flags & INIT_DB_SKIP_REFDB))
- create_reference_database(repo_fmt.ref_storage_format,
- initial_branch, flags & INIT_DB_QUIET);
+ create_reference_database(initial_branch, flags & INIT_DB_QUIET);
create_object_directory();
if (repo_settings_get_shared_repository(the_repository)) {
void initialize_repository_version(int hash_algo,
enum ref_storage_format ref_storage_format,
int reinit);
-void create_reference_database(enum ref_storage_format ref_storage_format,
- const char *initial_branch, int quiet);
+void create_reference_database(const char *initial_branch, int quiet);
/*
* NOTE NOTE NOTE!!