aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2008-03-17 12:21:35 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2008-03-17 12:21:35 +0000
commitb078757f05a7f9b004e88e7f94638d962f9df7fb (patch)
tree0db7e9d3d808b9dab8f3dcb4c4d8cc5ccc5de3cd /lib
parent38ce7b95b9f76afaf1d2fe9b39817411b0b3ba57 (diff)
downloadbitbake-b078757f05a7f9b004e88e7f94638d962f9df7fb.tar.gz
git.py: Work around refs/HEAD issues with git over http (fixes #3410)
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/fetch/git.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/fetch/git.py b/lib/bb/fetch/git.py
index 0c708e351..f4ae724f8 100644
--- a/lib/bb/fetch/git.py
+++ b/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)