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:
Henning Schild
2017-09-08 17:09:22 +02:00
committed by Daniel Wagner
parent aa3d109f0b
commit d06bdc4781
2 changed files with 11 additions and 11 deletions

View File

@@ -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,