diff options
author | Chris Larson <clarson@mvista.com> | 2009-06-10 12:34:32 -0700 |
---|---|---|
committer | Chris Larson <clarson@mvista.com> | 2009-06-17 11:51:18 -0700 |
commit | d2de8214da107c13d88af966f2e55627253ccd67 (patch) | |
tree | 9b6250fd743270ebeba2561a7ca6d2bdd473e428 /classes/base.bbclass | |
parent | f6afa2c6c1d99729c5cbdf65b5674b64ad529fe7 (diff) | |
download | openembedded-d2de8214da107c13d88af966f2e55627253ccd67.tar.gz |
base.bbclass: set PATH when calling git for metadata scm bits.
Signed-off-by: Chris Larson <clarson@mvista.com>
Diffstat (limited to 'classes/base.bbclass')
-rw-r--r-- | classes/base.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass index 6cafe9d665..116605fff8 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -885,7 +885,7 @@ def base_get_metadata_svn_revision(path, d): def base_get_metadata_git_branch(path, d): import os - branch = os.popen('cd %s; git symbolic-ref HEAD 2>/dev/null' % path).read().rstrip() + branch = os.popen('cd %s; PATH=%s git symbolic-ref HEAD 2>/dev/null' % (path, d.getVar("BBPATH", 1))).read().rstrip() if len(branch) != 0: return branch.replace("refs/heads/", "") @@ -893,7 +893,7 @@ def base_get_metadata_git_branch(path, d): def base_get_metadata_git_revision(path, d): import os - rev = os.popen("cd %s; git show-ref HEAD 2>/dev/null" % path).read().split(" ")[0].rstrip() + rev = os.popen("cd %s; PATH=%s git show-ref HEAD 2>/dev/null" % (path, d.getVar("BBPATH", 1))).read().split(" ")[0].rstrip() if len(rev) != 0: return rev return "<unknown>" |