Skip to content

Commit cf96533

Browse files
committed
resolve #73
1 parent 1374f8b commit cf96533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp_linter/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def run_clang_tidy(
425425
cmds.append(f"-checks={checks}")
426426
if database:
427427
cmds.append("-p")
428-
if RUNNER_WORKSPACE:
428+
if RUNNER_WORKSPACE and not os.path.isabs(database):
429429
path_to_db = RUNNER_WORKSPACE
430430
if repo_root and repo_root != ".":
431431
path_to_db += os.sep + repo_root

0 commit comments

Comments
 (0)