bitbake git.py: Always use tag param from URI if specified

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2791 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie 2007-09-26 08:39:57 +00:00
parent 2c13e1b5b5
commit eb7cc8a967
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class Git(Fetch):
ud.proto = ud.parm['protocol']
tag = data.getVar("SRCREV", d, 0)
if 'tag' in ud.parm and len(ud.parm['tag']) == 40:
if 'tag' in ud.parm:
ud.tag = ud.parm['tag']
elif tag and "get_srcrev" not in tag and len(tag) == 40:
ud.tag = tag