From 1644162ad53da1d0107c5c45c866e75ef95660bb Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Fri, 25 Nov 2005 10:48:26 -0800 Subject: [PATCH] Check repository format version in enter_repo(). After daemon, upload-pack and receive-pack find out where the git directory is and chdir() there, make sure that repository is in a format we understand, after putenv("GIT_DIR=.") so that it knows to pick up the configuration file from there. Signed-off-by: Junio C Hamano --- path.c | 1 + 1 file changed, 1 insertion(+) diff --git a/path.c b/path.c index 4d889473a..2c077c0c8 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(); } -- 2.26.2