summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/classes/gitver.bbclass2
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))