[oe-commits] [meta-openembedded] 02/05: gitver: Pass git directory argument to gitrev_run
git at git.openembedded.org
git at git.openembedded.org
Sun Jun 16 00:17:26 UTC 2019
This is an automated email from the git hooks/post-receive script.
khem pushed a commit to branch master-next
in repository meta-openembedded.
commit 0e342ecaa48e43c406df0f3c754b31c12fe56d8b
Author: Saikiran Madugula <hummerbliss at gmail.com>
AuthorDate: Mon Jun 10 04:43:55 2019 -0700
gitver: Pass git directory argument to gitrev_run
${GITSHA} gives the following error otherwise
gitrev_run() missing 1 required positional argument: 'path'
Signed-off-by: Saikiran Madugula <hummerbliss at gmail.com>
Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
meta-oe/classes/gitver.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta-oe/classes/gitver.bbclass b/meta-oe/classes/gitver.bbclass
index 07f44c3..cab850c 100644
--- a/meta-oe/classes/gitver.bbclass
+++ b/meta-oe/classes/gitver.bbclass
@@ -48,7 +48,7 @@ def get_git_hash(d):
srcdir = d.getVar("EXTERNALSRC") or d.getVar("S")
gitdir = os.path.abspath(os.path.join(srcdir, ".git"))
try:
- rev = gitrev_run("git rev-list HEAD -1")
+ rev = gitrev_run("git rev-list HEAD -1", gitdir)
return rev[:7]
except Exception as exc:
bb.fatal(str(exc))
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list