index a3b76de2bb1c18e2f3b8cdf5799c3c650b16d027..833db12bc4591c97f66998da96b23de48d319603 100644 (file)
--- a/setup.c
+++ b/setup.c
const char *prefix;
prefix = setup_git_directory_gently_1(nongit_ok);
- if (startup_info)
+ if (startup_info) {
startup_info->have_repository = !nongit_ok || !*nongit_ok;
+ startup_info->prefix = prefix;
+ }
return prefix;
}