13 Dec 00:38 - [PATCH] cg-clean: be safer by running everything from relpath

Pavel Roskin <proski@gnu.org>
Tue, 13 Dec 2005 00:38:33 +0000

[PATCH] cg-clean: be safer by running everything from relpath

cg-clean is broken by commit 3cddede46dcd24bd7c36827ca564de23b2bb3517 -
it removes all subdirectories when run in the top level directory.

Although it's easy to make a one-line fix, I'd prefer a solution that
makes cg-clean potentially safer. Since git-ls-files runs in
subdirectories now, it's no longer needed to run anything in the top
level directory and filter out the results. cg-clean now changes to
$_git_relpath on startup and never uses $_git_relpath again.

Signed-off-by: Pavel Roskin
Signed-off-by: Petr Baudis

cg-clean