File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,19 @@ function Runner:_run_git_job()
82
82
pcall (uv .kill , pid )
83
83
end
84
84
85
+ local function clean_log (opts_args )
86
+ local _opt_args = {}
87
+ for key , val in ipairs (opts_args ) do
88
+ if (val ~= nil ) then
89
+ _opt_args [key ] = val
90
+ end
91
+ end
92
+ return _opt_args
93
+ end
94
+
85
95
local opts = self :_getopts (stdout , stderr )
86
96
log .line (" git" , " running job with timeout %dms" , self .timeout )
87
- log .line (" git" , " git %s" , table.concat (opts .args , " " ))
97
+ log .line (" git" , " git %s" , table.concat (clean_log ( opts .args ) , " " ))
88
98
89
99
handle , pid = uv .spawn (
90
100
" git" ,
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ function M.should_show_untracked(cwd)
41
41
return untracked [cwd ]
42
42
end
43
43
44
- local cmd = " git -C " .. cwd .. " config --type=bool status.showUntrackedFiles"
44
+ local cmd = " git -C " .. cwd .. " config status.showUntrackedFiles"
45
45
46
46
local ps = log .profile_start (" git untracked %s" , cwd )
47
47
log .line (" git" , cmd )
@@ -51,7 +51,7 @@ function M.should_show_untracked(cwd)
51
51
log .raw (" git" , has_untracked )
52
52
log .profile_end (ps , " git untracked %s" , cwd )
53
53
54
- untracked [cwd ] = vim .trim (has_untracked ) ~= " false "
54
+ untracked [cwd ] = vim .trim (has_untracked ) ~= " no "
55
55
return untracked [cwd ]
56
56
end
57
57
You can’t perform that action at this time.
0 commit comments