From: Richard Purdie Date: Thu, 8 Nov 2007 00:06:34 +0000 (+0000) Subject: bitbake: git.py - Fix weird git checkout issues by using git-fetch, not git-pull... X-Git-Tag: 2011-1~10319 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=4c76399930a6dbd297bf0456fa4fde219b482415;p=openembedded-core.git bitbake: git.py - Fix weird git checkout issues by using git-fetch, not git-pull since we don't care about the index git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3102 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- diff --git a/bitbake/lib/bb/fetch/git.py b/bitbake/lib/bb/fetch/git.py index c26ee3fff3..cdd5a1090c 100644 --- a/bitbake/lib/bb/fetch/git.py +++ b/bitbake/lib/bb/fetch/git.py @@ -92,7 +92,7 @@ class Git(Fetch): os.chdir(repodir) # Remove all but the .git directory runfetchcmd("rm * -Rf", d) - runfetchcmd("git pull %s://%s%s" % (ud.proto, ud.host, ud.path), d) + runfetchcmd("git fetch %s://%s%s" % (ud.proto, ud.host, ud.path), d) runfetchcmd("git pull --tags %s://%s%s" % (ud.proto, ud.host, ud.path), d) runfetchcmd("git prune-packed", d) runfetchcmd("git pack-redundant --all | xargs -r rm", d)