]> code.ossystems Code Review - openembedded-core.git/commitdiff
git.py: Fix reference to tag
authorRichard Purdie <richard@openedhand.com>
Thu, 16 Aug 2007 11:58:13 +0000 (11:58 +0000)
committerRichard Purdie <richard@openedhand.com>
Thu, 16 Aug 2007 11:58:13 +0000 (11:58 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2503 311d38ba-8fff-0310-9ca6-ca027cbcb966

bitbake/lib/bb/fetch/git.py

index 31c54d6e9c6b68bf592f1c3e6624937f74f8ced5..0b04840bf7e45bc9e0194c245edc839ae671e6b5 100644 (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(tag) == 40:
+        if 'tag' in ud.parm and len(ud.parm['tag']) == 40:
             ud.tag = ud.parm['tag']
         elif tag and "get_srcrev" not in tag and len(tag) == 40:
             ud.tag = tag