lib/bb/fetch/git.py:
[vuplus_bitbake] / lib / bb / fetch / git.py
index 439d522..49235c1 100644 (file)
@@ -129,11 +129,12 @@ class Git(Fetch):
                     os.chdir(repodir)
                     rungitcmd("tar -xzf %s" % (repofile),d)
                 else:
-                    rungitcmd("git clone %s://%s%s %s" % (proto, host, path, repodir),d)
+                    rungitcmd("git clone -n %s://%s%s %s" % (proto, host, path, repodir),d)
 
             os.chdir(repodir)
             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)
             # old method of downloading tags
             #rungitcmd("rsync -a --verbose --stats --progress rsync://%s%s/ %s" % (host, path, os.path.join(repodir, ".git", "")),d)