From 9dd8518761f3d4a6d6add823db6b2ea3a6949a11 Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" <@> Date: Tue, 3 Mar 2009 00:46:50 +0100 Subject: [PATCH] pkggen: collect garbage --- utility/pkggen.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/utility/pkggen.c b/utility/pkggen.c index 2f7d717..9d815e6 100644 --- a/utility/pkggen.c +++ b/utility/pkggen.c @@ -130,8 +130,14 @@ int main(int argc, char **argv) { return 1; } - /* because we want to keep it out of the snapshots anyway */ - unlink("CHANGESTODO"); + puts(">> Doing a git garbage collection"); + if (system("git gc")) { + puts(">> Error during git gc. Exiting."); + return 1; + } + + /* we used to do this with cvs.. for git we could do .gitignore + unlink("CHANGESTODO"); */ /* system("rm .#CHANGESTODO*") */ puts(">> Now is your chance to make manual changes. Suspend now.");