From: Junio C Hamano Date: Fri, 25 Nov 2005 18:48:26 +0000 (-0800) Subject: Check repository format version in enter_repo(). X-Git-Tag: v0.99.9l^2~55 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=1644162ad53da1d0107c5c45c866e75ef95660bb;p=git.git 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 --- diff --git a/path.c b/path.c index 4d889473..2c077c0c 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(); }