mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-09 06:45:53 +08:00
Ban getcwd() from the codebase, as it causes problems
This commit is contained in:
1 parent
7f42aedaec
commit
e2271b769c
2 files changed
+3
-2
No files matched your search
@@ -19,7 +19,7 @@ function! ale#test#SetDirectory(docker_path) abort
|
||||
" Try to switch directory, which will fail when running tests directly,
|
||||
" and not through the Docker image.
|
||||
silent! execute 'cd ' . fnameescape(a:docker_path)
|
||||
let g:dir = getcwd()
|
||||
let g:dir = getcwd() " no-custom-checks
|
||||
endfunction
|
||||
|
||||
" When g:dir is defined, switch back to the directory we saved, and then
|
||||
@@ -43,7 +43,7 @@ function! ale#test#SetFilename(path) abort
|
||||
let l:dir = get(g:, 'dir', '')
|
||||
|
||||
if empty(l:dir)
|
||||
let l:dir = getcwd()
|
||||
let l:dir = getcwd() " no-custom-checks
|
||||
endif
|
||||
|
||||
let l:full_path = ale#path#IsAbsolute(a:path)
|
||||
|
||||
Reference in new issue
Block a user