Accept git aliases outside a git repository
commite85dc0a3c7a3f4f8d5aade83fd340b8df73471cd
authorJunio C Hamano <gitster@pobox.com>
Tue, 1 Apr 2008 04:33:09 +0000 (31 21:33 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Apr 2008 06:40:02 +0000 (1 23:40 -0700)
tree7019a9d632c755ae7e1bc666dcacb07ea49f91bb
parentf58dbf23c33e0e79622f4344b48ab5bc9bc360cc
Accept git aliases outside a git repository

af05d67 (Always set *nongit_ok in setup_git_directory_gently(),
2008-03-25) had a change from the patch originally submitted that resulted
in disabling aliases outside a git repository.

It turns out that some people used "alias.fubar = diff --color-words" in
$HOME/.gitconfig to use non-index diff (or any command that do not need
git repository) outside git repositories, and this change broke them,
so this resurrects the support for such usage.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
git.c