author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | |
Wed, 5 Dec 2007 13:33:32 +0000 (20:33 +0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 5 Dec 2007 23:06:37 +0000 (15:06 -0800) | ||
commit | 9459aa77a032621a29d53605542844641cca843a | |
tree | 01293ba54d1d3ed3a0d90c0f6f5a604c8dc479b6 | tree | snapshot |
parent | 138dd1e990cef5ac0176426016ad5e1f8e5dff58 | commit | diff |
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>
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 | diff | blob | history | |
t/t1302-repo-version.sh | [new file with mode: 0755] | blob |