summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/image-buildinfo.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/image-buildinfo.bbclass b/meta/classes/image-buildinfo.bbclass
index 3003f5d256..da1edf7496 100644
--- a/meta/classes/image-buildinfo.bbclass
+++ b/meta/classes/image-buildinfo.bbclass
@@ -28,7 +28,9 @@ def image_buildinfo_outputvars(vars, listvars, d):
28def get_layer_git_status(path): 28def get_layer_git_status(path):
29 import subprocess 29 import subprocess
30 try: 30 try:
31 subprocess.check_output("cd %s; PSEUDO_UNLOAD=1 git diff --quiet --no-ext-diff" % path, 31 subprocess.check_output("""cd %s; export PSEUDO_UNLOAD=1; set -e;
32 git diff --quiet --no-ext-diff
33 git diff --quiet --no-ext-diff --cached""" % path,
32 shell=True, 34 shell=True,
33 stderr=subprocess.STDOUT) 35 stderr=subprocess.STDOUT)
34 return "" 36 return ""