diff options
author | Junio C Hamano <junkio@cox.net> | 2005-11-25 10:48:26 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-27 01:32:59 -0800 |
commit | 1644162ad53da1d0107c5c45c866e75ef95660bb (patch) | |
tree | 38d3ce153b14ab4561c2f48f30ce601b8933cc53 /path.c | |
parent | ab9cb76f661c1794800361c27bc5a515245aaaef (diff) | |
download | git-1644162ad53da1d0107c5c45c866e75ef95660bb.tar.gz |
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>
Diffstat (limited to 'path.c')
-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(); } |