From: Simon Ruderich Date: Sat, 21 Feb 2009 23:04:43 +0000 (-0600) Subject: setup.sh runs gc on newly created repositories. X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=b803b471349c4622d5960f7ce2db830a163bb4d3 setup.sh runs gc on newly created repositories. --- diff --git a/setup.sh b/setup.sh index e18d62c..95aad80 100755 --- a/setup.sh +++ b/setup.sh @@ -43,9 +43,10 @@ function git_remote_init_update() { fi # Merge with remote master if the repository was just created, otherwise - # the repository starts empty. + # the repository starts empty. Also run gc to compress the new repository. if [ $new = yes ]; then git merge "$2/master" + git gc > /dev/null fi # Go back to the starting directory.