git gc --aggressive only cleaned up 4 mb of disk and took 7 minutes to run.
authorJustin C. Sherrill <justin@shiningsilence.com>
Sun, 4 Nov 2012 21:27:44 +0000 (16:27 -0500)
committerJustin C. Sherrill <justin@shiningsilence.com>
Sun, 4 Nov 2012 21:27:44 +0000 (16:27 -0500)
It doesn't seem to be worth the (admittedly small) time penalty.

etc/Makefile.usr

index 4828442..8b1bfdb 100644 (file)
@@ -74,9 +74,6 @@ pkgsrc-checkout:
 pkgsrc-update:
        cd ${.CURDIR}/pkgsrc && git pull
 
-# NOTE: Adding the git gc --aggressive helps nrelease builds by significantly
-#      reducing the disk space required.
-#
 src-create-repo:
        @echo "If problems occur you may have to rm -rf src and try again."
        @echo ""
@@ -86,7 +83,6 @@ src-create-repo:
                git remote add origin git://${GITHOST}/dragonfly.git
        cd ${.CURDIR}/src && git fetch origin
        cd ${.CURDIR}/src && git branch master origin/master
-       cd ${.CURDIR}/src && git gc --aggressive
 
 src-create: src-create-repo
        cd ${.CURDIR}/src && git checkout master