diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2017-03-01 00:25:39 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-03-01 22:47:12 +0300 |
commit | 98e61e4542a2cdc9e9dd32a20e6e5186a87d82a5 (patch) | |
tree | 4fda3eb4fcf79142541657c5d4a33e58d3b7b826 /meta-phosphor/common | |
parent | 04c3ef09c2c9b2b594937da19b02d7dd08d75c94 (diff) | |
download | openbmc-98e61e4542a2cdc9e9dd32a20e6e5186a87d82a5.tar.xz |
os-release: ensure 'dirty' really means dirty.
When using --git-dir, git no longer automatically determines the
working tree and thus always assumes the tree is dirty unless the
--work-tree option is also passed.
Fixes openbmc/openbmc#820.
Change-Id: I3af6941e0562bf665290e57c2b7a80459385fefa
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'meta-phosphor/common')
-rw-r--r-- | meta-phosphor/common/recipes-core/os-release/os-release.bbappend | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-phosphor/common/recipes-core/os-release/os-release.bbappend b/meta-phosphor/common/recipes-core/os-release/os-release.bbappend index d91823dd7..1ac195fbd 100644 --- a/meta-phosphor/common/recipes-core/os-release/os-release.bbappend +++ b/meta-phosphor/common/recipes-core/os-release/os-release.bbappend @@ -1,7 +1,8 @@ def run_git(d, cmd): try: oeroot = d.getVar('COREBASE', True) - return bb.process.run("git --git-dir %s/.git %s" %(oeroot, cmd))[0].strip('\n') + return bb.process.run("git --work-tree %s --git-dir %s/.git %s" + % (oeroot, oeroot, cmd))[0].strip('\n') except: pass |