mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 03:49:32 +02:00
base.bbclass: Fix missing argument
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -791,8 +791,8 @@ def base_get_metadata_git_branch(path, d):
|
|||||||
return branch
|
return branch
|
||||||
return "<unknown>"
|
return "<unknown>"
|
||||||
|
|
||||||
def base_get_metadata_git_revision(d):
|
def base_get_metadata_git_revision(path, d):
|
||||||
rev = os.popen("cd %s; git log -n 1 --pretty=oneline --" % base_get_scmbasepath(d)).read().split(" ")[0]
|
rev = os.popen("cd %s; git log -n 1 --pretty=oneline --" % path).read().split(" ")[0]
|
||||||
if len(rev) != 0:
|
if len(rev) != 0:
|
||||||
return rev
|
return rev
|
||||||
return "<unknown>"
|
return "<unknown>"
|
||||||
|
|||||||
Reference in New Issue
Block a user