Code

index-pack: run setup_git_directory_gently() sooner
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 6 Aug 2010 03:18:53 +0000 (22:18 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Aug 2010 03:00:02 +0000 (20:00 -0700)
commite0fce074fc4fdf2d2175ff97f1cc3db918ea87e9
tree0db6af2c57a630beff6a88974e034f692ad6c6a0
parentfc196b68905958dac66e1baaa3b66b84a2cdacfc
index-pack: run setup_git_directory_gently() sooner

index-pack already runs a repository search unconditionally; running
such a search earlier is not risky and ensures GIT_DIR will be set
correctly if the configuration needs to be accessed from
run_builtin().

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/index-pack.c
git.c