Do check_repository_format() early (re-fix)
commit9459aa77a032621a29d53605542844641cca843a
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Wed, 5 Dec 2007 13:33:32 +0000 (5 20:33 +0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Dec 2007 23:06:37 +0000 (5 15:06 -0800)
tree01293ba54d1d3ed3a0d90c0f6f5a604c8dc479b6
parent138dd1e990cef5ac0176426016ad5e1f8e5dff58
Do check_repository_format() early (re-fix)

This pushes check_repository_format() (actually _gently() version)
to setup_git_directory_gently() in order to prevent from
using unsupported repositories.

New setup_git_directory_gently()'s behaviour is stop searching
for a valid gitdir and return as if there is no gitdir if a
unsupported repository is found. Warning will be thrown in these
cases.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
setup.c
t/t1302-repo-version.sh [new file with mode: 0755]