diff options
author | Junio C Hamano <junkio@cox.net> | 2005-11-25 21:48:26 +0300 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-27 12:32:59 +0300 |
commit | 1644162ad53da1d0107c5c45c866e75ef95660bb (patch) | |
tree | 38d3ce153b14ab4561c2f48f30ce601b8933cc53 | |
parent | ab9cb76f661c1794800361c27bc5a515245aaaef (diff) |
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 <junkio@cox.net>
-rw-r--r-- | path.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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(); } |