]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/grep.c
Merge branch 'jc/quote-path-cleanup'
[thirdparty/git.git] / builtin / grep.c
index f58979bc3f07a6ca5adbd8704b1df41bf4215048..c8037388c6e7fd4c62d1a019b1c7b17f020370df 100644 (file)
@@ -319,7 +319,7 @@ static void grep_source_name(struct grep_opt *opt, const char *filename,
        }
 
        if (opt->relative && opt->prefix_length)
-               quote_path_relative(filename + tree_name_len, opt->prefix, out);
+               quote_path(filename + tree_name_len, opt->prefix, out, 0);
        else
                quote_c_style(filename + tree_name_len, out, NULL, 0);