]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-shared.c
Bump version.
[ps-cgit] / ui-shared.c
index 1ede2b0bbfa4a55c49311fde04d6a5a7765d8362..9dde0a39912899c821ff80c318489c86cde8b25b 100644 (file)
@@ -128,7 +128,7 @@ const char *cgit_repobasename(const char *reponame)
        /* strip trailing slashes */
        while (p && rvbuf[p] == '/') rvbuf[p--] = 0;
        /* strip trailing .git */
-       if (p >= 3 && !prefixcmp(&rvbuf[p-3], ".git")) {
+       if (p >= 3 && starts_with(&rvbuf[p-3], ".git")) {
                p -= 3; rvbuf[p--] = 0;
        }
        /* strip more trailing slashes if any */