mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 20:31:19 -03:00
git completions: make :/:-prefixed paths work everywhere on old git
git versions that only support porcelain v1 output (like on CentOS 7, which has 1.8.3) weren't completing files prefixed with : correctly iff the name after the colon was also a valid relative path. Fixes the tests on CentOS 7.
This commit is contained in:
@@ -487,6 +487,7 @@ function __fish_git_files
|
||||
end
|
||||
|
||||
if test "$root/$relfile" = (pwd -P)/$relfile
|
||||
and not string match -q ':*' -- (commandline -ct)
|
||||
set file $relfile
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user