summaryrefslogtreecommitdiff
path: root/git-sh-setup.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-25 15:43:41 -0800
committerJunio C Hamano <junkio@cox.net>2005-11-25 15:43:41 -0800
commit5e7bfe256755ef2862e960864db1edb829c82b77 (patch)
tree4015ea6443610bdf69724975fbc520c18b1bdcac /git-sh-setup.sh
parent5d318ce6a9fb18448e4a1a9b61d355d391ddc5ec (diff)
downloadgit-5e7bfe256755ef2862e960864db1edb829c82b77.tar.gz
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 'git-sh-setup.sh')
0 files changed, 0 insertions, 0 deletions