aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch/git.py
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-03-28 17:19:49 +0000
committerRichard Purdie <richard@openedhand.com>2008-03-28 17:19:49 +0000
commit841b37b6263967e77d9055a20728f2f7cebfcb7f (patch)
tree4872d1b1b7aad1c6f5d99dab7ffea5dc9e73662a /bitbake/lib/bb/fetch/git.py
parentea20fb8d333e0045389dfb4da7578f710e5dcbd8 (diff)
downloadopenembedded-core-contrib-841b37b6263967e77d9055a20728f2f7cebfcb7f.tar.gz
bitbake: Fix a bug where changed files weren't getting spotted and an invalid cache was being used
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4148 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake/lib/bb/fetch/git.py')
-rw-r--r--bitbake/lib/bb/fetch/git.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch/git.py b/bitbake/lib/bb/fetch/git.py
index 0c708e3516..f4ae724f87 100644
--- a/bitbake/lib/bb/fetch/git.py
+++ b/bitbake/lib/bb/fetch/git.py
@@ -50,7 +50,7 @@ class Git(Fetch):
if 'protocol' in ud.parm:
ud.proto = ud.parm['protocol']
- ud.branch = ud.parm.get("branch", "")
+ ud.branch = ud.parm.get("branch", "master")
tag = Fetch.srcrev_internal_helper(ud, d)
if tag is True:
@@ -95,7 +95,7 @@ class Git(Fetch):
os.chdir(repodir)
# Remove all but the .git directory
runfetchcmd("rm * -Rf", d)
- runfetchcmd("git fetch %s://%s%s" % (ud.proto, ud.host, ud.path), d)
+ runfetchcmd("git fetch %s://%s%s %s" % (ud.proto, ud.host, ud.path, ud.branch), d)
runfetchcmd("git fetch --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)