mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
completions/git: do not use user input as format string
Suggested byf5711ad5e
(git.fish: collapse repeat complete cmds, set -f, rm unneeded funcs, 2022-10-27). (cherry picked from commit7c1c3f9f77
)
This commit is contained in:
parent
b65974bb0a
commit
c97a922d35
1 changed files with 1 additions and 1 deletions
|
@ -509,7 +509,7 @@ function __fish_git_rev_files
|
|||
|
||||
# List files in $rev's index, skipping the "tree ..." header, but appending
|
||||
# the parent path, which git does not include in the output (and fish requires)
|
||||
printf "$path%s\n" (__fish_git show $rev:$path | sed '1,2d')
|
||||
string join \n -- $path(__fish_git show $rev:$path | sed '1,2d')
|
||||
end
|
||||
|
||||
# Provides __fish_git_rev_files completions for the current token
|
||||
|
|
Loading…
Reference in a new issue