bitbake/git.py: Make sure a full clone checkout always updates

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie
2010-08-13 11:08:43 +01:00
parent 76a17c1b5e
commit 0ea4b89649

View File

@@ -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)