Merge branch 'jt/send-email-validate-hook'
[gitweb.git] / environment.c
index 1f0bda5afabe901bea250e7dabcc39c5325baf88..aa478e71de9d9c233593de050d6823e96be77b88 100644 (file)
@@ -217,6 +217,8 @@ const char *get_git_dir(void)
 
 const char *get_git_common_dir(void)
 {
+       if (!git_dir)
+               setup_git_env();
        return git_common_dir;
 }