From 7d55491f88ff90a4c16ad87b1483d55b1824acfc Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sat, 8 Jul 2006 12:47:40 +0000 Subject: lib/bb/fetch/git.py: Add some commands to clean up the git directories to make things faster and use less space --- lib/bb/fetch/git.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/bb/fetch/git.py b/lib/bb/fetch/git.py index 49235c141..0646885f0 100644 --- a/lib/bb/fetch/git.py +++ b/lib/bb/fetch/git.py @@ -135,6 +135,9 @@ class Git(Fetch): rungitcmd("git pull %s://%s%s" % (proto, host, path),d) rungitcmd("git pull --tags %s://%s%s" % (proto, host, path),d) rungitcmd("git prune-packed", d) + rungitcmd("git pack-redundant --all | xargs -r rm", d) + # Remove all but the .git directory + rungitcmd("rm * -Rf", d) # old method of downloading tags #rungitcmd("rsync -a --verbose --stats --progress rsync://%s%s/ %s" % (host, path, os.path.join(repodir, ".git", "")),d) -- cgit 1.2.3-korg