diff options
author | Saikiran Madugula <hummerbliss@gmail.com> | 2019-06-10 04:43:55 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-06-15 17:17:09 -0700 |
commit | 0e342ecaa48e43c406df0f3c754b31c12fe56d8b (patch) | |
tree | c0b78715f350ec969a62f2735503696c539cf6a4 /meta-oe/classes/gitver.bbclass | |
parent | 10c39b96a289ee37a8ab342adf4363967ec5e679 (diff) | |
download | meta-openembedded-0e342ecaa48e43c406df0f3c754b31c12fe56d8b.tar.gz |
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@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/classes/gitver.bbclass')
-rw-r--r-- | meta-oe/classes/gitver.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-oe/classes/gitver.bbclass b/meta-oe/classes/gitver.bbclass index 07f44c34b..cab850c7a 100644 --- a/meta-oe/classes/gitver.bbclass +++ b/meta-oe/classes/gitver.bbclass | |||
@@ -48,7 +48,7 @@ def get_git_hash(d): | |||
48 | srcdir = d.getVar("EXTERNALSRC") or d.getVar("S") | 48 | srcdir = d.getVar("EXTERNALSRC") or d.getVar("S") |
49 | gitdir = os.path.abspath(os.path.join(srcdir, ".git")) | 49 | gitdir = os.path.abspath(os.path.join(srcdir, ".git")) |
50 | try: | 50 | try: |
51 | rev = gitrev_run("git rev-list HEAD -1") | 51 | rev = gitrev_run("git rev-list HEAD -1", gitdir) |
52 | return rev[:7] | 52 | return rev[:7] |
53 | except Exception as exc: | 53 | except Exception as exc: |
54 | bb.fatal(str(exc)) | 54 | bb.fatal(str(exc)) |