libkas: do not use absolute paths when executing programs
Using absolute paths breaks on systems that place the binaries in another directory and it defeats local overlays with PATH. Signed-off-by: Henning Schild <henning.schild@siemens.com>
This commit is contained in:
committed by
Daniel Wagner
parent
aa3d109f0b
commit
d06bdc4781
@@ -394,7 +394,7 @@ class ConfigStatic(Config):
|
||||
if path is None:
|
||||
# In-tree configuration
|
||||
path = os.path.dirname(self.filename)
|
||||
(ret, output) = run_cmd(['/usr/bin/git',
|
||||
(ret, output) = run_cmd(['git',
|
||||
'rev-parse',
|
||||
'--show-toplevel'],
|
||||
cwd=path,
|
||||
|
Reference in New Issue
Block a user