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