Commands requiring a work tree must not run in GIT_DIR
commit6d9ba67b0fc2f18c1d7a65514edbdcdf86429c1c
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Tue, 23 Jan 2007 12:30:20 +0000 (23 13:30 +0100)
committerJunio C Hamano <junkio@cox.net>
Mon, 5 Feb 2007 22:02:16 +0000 (5 14:02 -0800)
treeed60e9bec4aa2adc5aecde724614f3fa4a542971
parent98d47d4ccf76725e7833c1bbda1da82f7648925f
Commands requiring a work tree must not run in GIT_DIR

This patch helps when you accidentally run something like git-clean
in the git directory instead of the work tree.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-ls-files.c
builtin-rev-parse.c
git-sh-setup.sh
git.c