From: Johannes Sixt Date: Mon, 12 Nov 2007 08:27:35 +0000 (+0100) Subject: git-clean: Fix error message if clean.requireForce is not set. X-Git-Tag: v1.5.4-rc0~222 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/f192c5d0fb37a1a89d88e92bb7b21418b57c2129?ds=inline;hp=f192c5d0fb37a1a89d88e92bb7b21418b57c2129 git-clean: Fix error message if clean.requireForce is not set. It was distracting to see this error message: clean.requireForce set and -n or -f not given; refusing to clean even though clean.requireForce was not set at all. This patch distinguishes the cases and gives a different message depending on whether the configuration variable is not set or set to true. While we are here, we also divert the error messages to stderr. Signed-off-by: Johannes Sixt Signed-off-by: Junio C Hamano ---