mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #56875 from s0undt3ch/features/doc-pre-commit
Resolve paths passed directly with `--files`
This commit is contained in:
commit
0a56079148
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ def build_file_list(files, extension):
|
|||
if not _files:
|
||||
_files = CODE_DIR.rglob("*{}".format(extension))
|
||||
else:
|
||||
_files = [pathlib.Path(fname) for fname in _files]
|
||||
_files = [pathlib.Path(fname).resolve() for fname in _files]
|
||||
_files = [path.relative_to(CODE_DIR) for path in _files]
|
||||
return _files
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue