summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--path.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/path.c b/path.c
index 4d889473a7..2c077c0c8f 100644
--- 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();
}