summaryrefslogtreecommitdiff
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-13 11:08:43 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-13 11:35:11 +0100
commit0ea4b896495be47e6403595d8419648f2aae68dc (patch)
tree1e1106e1d858c4f46be15744aa8834481bec236e /bitbake/lib
parent76a17c1b5e31d84032a53292064bb02f1dfcc2d7 (diff)
downloadopenembedded-core-0ea4b896495be47e6403595d8419648f2aae68dc.tar.gz
openembedded-core-0ea4b896495be47e6403595d8419648f2aae68dc.tar.bz2
openembedded-core-0ea4b896495be47e6403595d8419648f2aae68dc.tar.xz
openembedded-core-0ea4b896495be47e6403595d8419648f2aae68dc.zip
bitbake/git.py: Make sure a full clone checkout always updates
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/fetch/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/git.py b/bitbake/lib/bb/fetch/git.py
index 8c91de9db..535f9e5f3 100644
--- a/bitbake/lib/bb/fetch/git.py
+++ b/bitbake/lib/bb/fetch/git.py
@@ -105,7 +105,7 @@ class Git(Fetch):
os.chdir(ud.clonedir)
# Remove all but the .git directory
- if not self._contains_ref(ud.tag, d):
+ if not self._contains_ref(ud.tag, d) or 'fullclone' in ud.parm:
runfetchcmd("rm * -Rf", d)
runfetchcmd("%s fetch %s://%s%s%s %s" % (ud.basecmd, ud.proto, username, ud.host, ud.path, ud.branch), d)
runfetchcmd("%s fetch --tags %s://%s%s%s" % (ud.basecmd, ud.proto, username, ud.host, ud.path), d)