diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2006-07-08 12:47:40 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2006-07-08 12:47:40 +0000 |
commit | 7d55491f88ff90a4c16ad87b1483d55b1824acfc (patch) | |
tree | 089e3baf22dc90e19939bcb37aa8f7d5ec9bcf1a | |
parent | f43dad99ae018be3779724899be89f00eda935f4 (diff) | |
download | bitbake-7d55491f88ff90a4c16ad87b1483d55b1824acfc.tar.gz |
lib/bb/fetch/git.py: Add some commands to clean up the git directories to make things faster and use less space
-rw-r--r-- | lib/bb/fetch/git.py | 3 |
1 files changed, 3 insertions, 0 deletions
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) |