diff options
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 2550bde838..7442f84414 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
@@ -326,7 +326,7 @@ class Git(FetchMethod): | |||
326 | branchname = ud.branches[ud.names[0]] | 326 | branchname = ud.branches[ud.names[0]] |
327 | runfetchcmd("%s checkout -B %s %s" % (ud.basecmd, branchname, \ | 327 | runfetchcmd("%s checkout -B %s %s" % (ud.basecmd, branchname, \ |
328 | ud.revisions[ud.names[0]]), d, workdir=destdir) | 328 | ud.revisions[ud.names[0]]), d, workdir=destdir) |
329 | runfetchcmd("%s branch --set-upstream %s origin/%s" % (ud.basecmd, branchname, \ | 329 | runfetchcmd("%s branch %s --set-upstream-to origin/%s" % (ud.basecmd, branchname, \ |
330 | branchname), d, workdir=destdir) | 330 | branchname), d, workdir=destdir) |
331 | else: | 331 | else: |
332 | runfetchcmd("%s checkout %s" % (ud.basecmd, ud.revisions[ud.names[0]]), d, workdir=destdir) | 332 | runfetchcmd("%s checkout %s" % (ud.basecmd, ud.revisions[ud.names[0]]), d, workdir=destdir) |