summaryrefslogtreecommitdiff
path: root/poky/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'poky/bitbake/lib/bb/fetch2/git.py')
-rw-r--r--poky/bitbake/lib/bb/fetch2/git.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/poky/bitbake/lib/bb/fetch2/git.py b/poky/bitbake/lib/bb/fetch2/git.py
index df9538a60..490d57fbb 100644
--- a/poky/bitbake/lib/bb/fetch2/git.py
+++ b/poky/bitbake/lib/bb/fetch2/git.py
@@ -220,12 +220,7 @@ class Git(FetchMethod):
ud.shallow = False
if ud.usehead:
- # When usehead is set let's associate 'HEAD' with the unresolved
- # rev of this repository. This will get resolved into a revision
- # later. If an actual revision happens to have also been provided
- # then this setting will be overridden.
- for name in ud.names:
- ud.unresolvedrev[name] = 'HEAD'
+ ud.unresolvedrev['default'] = 'HEAD'
ud.basecmd = d.getVar("FETCHCMD_git") or "git -c core.fsyncobjectfiles=0"