]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-clone.c
git: update for git 2.0
[ps-cgit] / ui-clone.c
index d25553b68da2e30007a5a45163b496f9e86d55f8..a4ffd6e06bfe1f371cec2221813e1d0b7b5be084 100644 (file)
@@ -63,7 +63,7 @@ static void send_file(char *path)
        }
        ctx.page.mimetype = "application/octet-stream";
        ctx.page.filename = path;
-       if (prefixcmp(ctx.repo->path, path))
+       if (!starts_with(ctx.repo->path, path))
                ctx.page.filename += strlen(ctx.repo->path) + 1;
        cgit_print_http_headers();
        html_include(path);