cmake: build-id: specify current working directory
This commit is contained in:
+2
-1
@@ -26,7 +26,8 @@ def get_arg(name):
|
||||
return ''
|
||||
|
||||
|
||||
current_tag = subprocess.check_output(['git', 'describe', '--tags', '--abbrev=0']).decode('utf-8').strip()
|
||||
source_dir = get_arg('source-dir')
|
||||
current_tag = subprocess.check_output(['git', 'describe', '--tags', '--abbrev=0'], cwd=source_dir).decode('utf-8').strip()
|
||||
|
||||
build_id = '{}'.format(current_tag)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user