Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
setup: save prefix (original cwd relative to toplevel) in startup_info
[gitweb.git]
/
setup.c
diff --git
a/setup.c
b/setup.c
index a3b76de2bb1c18e2f3b8cdf5799c3c650b16d027..833db12bc4591c97f66998da96b23de48d319603 100644
(file)
--- a/
setup.c
+++ b/
setup.c
@@
-512,8
+512,10
@@
const char *setup_git_directory_gently(int *nongit_ok)
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;
}