summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch/git.py
diff options
context:
space:
mode:
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):
50 if 'protocol' in ud.parm: 50 if 'protocol' in ud.parm:
51 ud.proto = ud.parm['protocol'] 51 ud.proto = ud.parm['protocol']
52 52
53 ud.branch = ud.parm.get("branch", "") 53 ud.branch = ud.parm.get("branch", "master")
54 54
55 tag = Fetch.srcrev_internal_helper(ud, d) 55 tag = Fetch.srcrev_internal_helper(ud, d)
56 if tag is True: 56 if tag is True:
@@ -95,7 +95,7 @@ class Git(Fetch):
95 os.chdir(repodir) 95 os.chdir(repodir)
96 # Remove all but the .git directory 96 # Remove all but the .git directory
97 runfetchcmd("rm * -Rf", d) 97 runfetchcmd("rm * -Rf", d)
98 runfetchcmd("git fetch %s://%s%s" % (ud.proto, ud.host, ud.path), d) 98 runfetchcmd("git fetch %s://%s%s %s" % (ud.proto, ud.host, ud.path, ud.branch), d)
99 runfetchcmd("git fetch --tags %s://%s%s" % (ud.proto, ud.host, ud.path), d) 99 runfetchcmd("git fetch --tags %s://%s%s" % (ud.proto, ud.host, ud.path), d)
100 runfetchcmd("git prune-packed", d) 100 runfetchcmd("git prune-packed", d)
101 runfetchcmd("git pack-redundant --all | xargs -r rm", d) 101 runfetchcmd("git pack-redundant --all | xargs -r rm", d)