}
static int
-load_repo_config(void)
+load_git_config(void)
{
return read_properties(popen(GIT_CONFIG " --list", "r"),
"=", read_repo_config_option);
if (load_options() == ERR)
die("Failed to load user config.");
- /* Load the repo config file so options can be overwritten from
- * the command line. */
- if (load_repo_config() == ERR)
+ if (load_git_config() == ERR)
die("Failed to load repo config.");
if (!parse_options(argc, argv))
die("Failed to initialize character set conversion");
}
- if (load_refs() == ERR)
+ if (*opt_git_dir && load_refs() == ERR)
die("Failed to load refs.");
for (i = 0; i < ARRAY_SIZE(views) && (view = &views[i]); i++)