Code

setup: split off $GIT_DIR-set case from setup_git_directory_gently
authorJonathan Nieder <jrnieder@gmail.com>
Sat, 24 Jul 2010 11:19:44 +0000 (06:19 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Jul 2010 05:08:13 +0000 (22:08 -0700)
commite4e303479b62e474c52ee1f9edd265d7333117d9
tree24deeb75d501804172cf3f758d005f2a8ac6e429
parent9f41a91a7d100055fbd527f35b8cddae0bd91cac
setup: split off $GIT_DIR-set case from setup_git_directory_gently

If $GIT_DIR is set, setup_git_directory_gently does not have
to do any repository discovery at all.  Split off a function
for the validation it still does do, in the hope that this will
make setup_git_directory_gently proper less daunting to read.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
setup.c