fast-export: quote paths with spaces
[gitweb.git] / builtin / fast-export.c
index 9836e6b7ca22e254c06d8d766d510ef43a8cbe90..e8a07c95e11dd4e8a305f586b3aafbda84c34a28 100644 (file)
@@ -185,6 +185,8 @@ static void print_path(const char *path)
        int need_quote = quote_c_style(path, NULL, NULL, 0);
        if (need_quote)
                quote_c_style(path, NULL, stdout, 0);
+       else if (strchr(path, ' '))
+               printf("\"%s\"", path);
        else
                printf("%s", path);
 }