summaryrefslogtreecommitdiffstats
path: root/Documentation/.gitignore
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-26 00:43:41 +0100
committerJunio C Hamano <junkio@cox.net>2005-11-26 00:43:41 +0100
commit5e7bfe256755ef2862e960864db1edb829c82b77 (patch)
tree4015ea6443610bdf69724975fbc520c18b1bdcac /Documentation/.gitignore
parentgit-var: make it work in subdirectory. (diff)
downloadgit-5e7bfe256755ef2862e960864db1edb829c82b77.tar.xz
git-5e7bfe256755ef2862e960864db1edb829c82b77.zip
setup_git_directory: make sure GIT_DIR is a valid repository.
setup_git_directory() always trusted what the user told where GIT_DIR was, and assumed that is a valid .git/ directory. This commit changes it to at least do the same level validation as is_toplevel_directory() does -- has refs/, has objects/ unless GIT_OBJECT_DIRECTORY is set, and has valid HEAD symlink or symref. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation/.gitignore')
0 files changed, 0 insertions, 0 deletions