mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-30 05:40:58 +01:00 
			
		
		
		
	52904: Improve quoting of paths passed via _call_program to "git ls-files"
This commit is contained in:
		
							parent
							
								
									bd19d4e394
								
							
						
					
					
						commit
						7f196de9d7
					
				
					 2 changed files with 6 additions and 1 deletions
				
			
		|  | @ -7531,7 +7531,7 @@ __git_files () { | |||
|   # First allow ls-files to pattern-match in case of remote repository. Use the | ||||
|   # icase pathspec magic word to ensure that we support case-insensitive path | ||||
|   # completion for users with the appropriate matcher configuration | ||||
|   files=(${(0)"$(_call_program files git ls-files -z --exclude-standard ${(q)opts} -- ${(q)${pref:+:\(icase\)$pref\*}:-.} 2>/dev/null)"}) | ||||
|   files=(${(0)"$(_call_program files git ls-files -z --exclude-standard ${(q)opts} -- ${(q)${pref:+:\(icase\)${(qq)pref}\*}:-.} 2>/dev/null)"}) | ||||
|   __git_command_successful $pipestatus || return | ||||
| 
 | ||||
|   # If ls-files succeeded but returned nothing, try again with no pattern. Note | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue