prune.c: only print informational message in show_only or verbose mode
[gitweb.git] / builtin / fast-export.c
index ef7c0120949c4ce1667c9d1d8e74a9c63c8adc02..9ab6db3fb042d0cb7ee3a1919788b9a6cd26a3d6 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);
 }