From: Richard Purdie Date: Fri, 13 Aug 2010 10:08:43 +0000 (+0100) Subject: bitbake/git.py: Make sure a full clone checkout always updates X-Git-Tag: 2011-1~4938 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=0ea4b896495be47e6403595d8419648f2aae68dc;p=openembedded-core.git bitbake/git.py: Make sure a full clone checkout always updates Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/fetch/git.py b/bitbake/lib/bb/fetch/git.py index 8c91de9db1..535f9e5f3a 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)