summaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bb/fetch/git.py')
-rw-r--r--lib/bb/fetch/git.py3
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)