Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
setup: set startup_info->have_repository more reliably
[gitweb.git]
/
setup.c
diff --git
a/setup.c
b/setup.c
index fa7a306287a9daee48b6d970b4e2e7c3f96cd46e..3439ec6d815f823ed853251c9afa94d14d78556a 100644
(file)
--- a/
setup.c
+++ b/
setup.c
@@
-986,7
+986,9
@@
int check_repository_format_version(const char *var, const char *value, void *cb
int check_repository_format(void)
{
- return check_repository_format_gently(get_git_dir(), NULL);
+ check_repository_format_gently(get_git_dir(), NULL);
+ startup_info->have_repository = 1;
+ return 0;
}
/*