From a0b0c1ddc1ece7eabc846e586b6e35e9c4dabe1d Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 17 May 2024 12:59:54 -0400 Subject: [PATCH] Normalize path before quoting it --- autoload/fugitive.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 7545dd4..e2d315e 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -273,10 +273,11 @@ function! s:TempScript(...) abort if !filereadable(temp) call writefile(['#!/bin/sh'] + a:000, temp) endif + let temp = FugitiveGitPath(temp) if temp =~# '\s' let temp = '"' . temp . '"' endif - return FugitiveGitPath(temp) + return temp endfunction function! s:DoAutocmd(...) abort