ls-tree: major rewrite to do pathspec
[gitweb.git] / path.c
diff --git a/path.c b/path.c
index 4d889473a78a2c6fa38a0b54a48fe55bd83e9b02..2c077c0c8f7066c5338050ce890c0846adedf6bd 100644 (file)
--- a/path.c
+++ b/path.c
@@ -199,6 +199,7 @@ char *enter_repo(char *path, int strict)
        if(access("objects", X_OK) == 0 && access("refs", X_OK) == 0 &&
           validate_symref("HEAD") == 0) {
                putenv("GIT_DIR=.");
+               check_repository_format();
                return current_dir();
        }