On 3/11/07, Matthias Lederhofer <matled@xxxxxxx> wrote:
diff --git a/environment.c b/environment.c index 0151ad0..5c30c9b 100644 --- a/environment.c +++ b/environment.c @@ -61,6 +61,8 @@ int is_bare_repository(void) const char *dir, *s; if (0 <= is_bare_repository_cfg) return is_bare_repository_cfg; + if (0 <= has_working_directory) + return !has_working_directory; dir = get_git_dir(); if (!strcmp(dir, DEFAULT_GIT_DIR_ENVIRONMENT))
Um.. git-sh-setup.sh may need special treatment because its is_bare_directory doesn't call this function. -- Duy - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html