summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-10-19 17:17:41 +0100
committerSaul Wold <Saul.Wold@intel.com>2010-10-20 10:10:51 -0700
commit476242adc4a3745dd2f829380e530e15ec3c9a0a (patch)
treec193f7090688cda5e824e3c9b5b0d68da2acf631 /bitbake/lib
parente9ef9424a3fea464c9d44465118ca043ed69303d (diff)
downloadpoky-476242adc4a3745dd2f829380e530e15ec3c9a0a.tar.gz
bitbake/fetch/git: Ensure fullclone repositories are fully fetched
The git fetcher was failing to pull in new branches into a git repository mirror tarball as the git fetch command being used didn't add new remote branches. This patch uses "git fetch --all" for fullclones to ensure any new remote branches are cloned correctly. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/fetch/git.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/git.py b/bitbake/lib/bb/fetch/git.py
index 33e9a95baf..9bd447ff8b 100644
--- a/bitbake/lib/bb/fetch/git.py
+++ b/bitbake/lib/bb/fetch/git.py
@@ -141,7 +141,10 @@ class Git(Fetch):
141 if not self._contains_ref(ud.tag, d) or 'fullclone' in ud.parm: 141 if not self._contains_ref(ud.tag, d) or 'fullclone' in ud.parm:
142 # Remove all but the .git directory 142 # Remove all but the .git directory
143 runfetchcmd("rm * -Rf", d) 143 runfetchcmd("rm * -Rf", d)
144 runfetchcmd("%s fetch %s://%s%s%s %s" % (ud.basecmd, ud.proto, username, ud.host, ud.path, ud.branch), d) 144 if 'fullclone' in ud.parm:
145 runfetchcmd("%s fetch --all" % (ud.basecmd), d)
146 else:
147 runfetchcmd("%s fetch %s://%s%s%s %s" % (ud.basecmd, ud.proto, username, ud.host, ud.path, ud.branch), d)
145 runfetchcmd("%s fetch --tags %s://%s%s%s" % (ud.basecmd, ud.proto, username, ud.host, ud.path), d) 148 runfetchcmd("%s fetch --tags %s://%s%s%s" % (ud.basecmd, ud.proto, username, ud.host, ud.path), d)
146 runfetchcmd("%s prune-packed" % ud.basecmd, d) 149 runfetchcmd("%s prune-packed" % ud.basecmd, d)
147 runfetchcmd("%s pack-redundant --all | xargs -r rm" % ud.basecmd, d) 150 runfetchcmd("%s pack-redundant --all | xargs -r rm" % ud.basecmd, d)