Code

git-clean: correct printing relative path
authorDmitry Potapov <dpotapov@gmail.com>
Fri, 7 Mar 2008 01:13:17 +0000 (04:13 +0300)
committerJunio C Hamano <gitster@pobox.com>
Sat, 8 Mar 2008 05:22:37 +0000 (21:22 -0800)
commit1fb328947c8e3ace9df7d2d5374e26e2510a4e93
tree6b4f4d636397d6cb44bad99aea7c05d91d4fe3ec
parenta734d0b10bd0f5554abb3acdf11426040cfc4df0
git-clean: correct printing relative path

When the given path contains '..' then git-clean incorrectly printed names
of files. This patch changes cmd_clean to use quote_path_relative().
Also, "failed to remove ..." message used absolutely path, but not it is
corrected to use relative path.

Signed-off-by: Dmitry Potapov <dpotapov@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-clean.c