commit - 67b757c185c2baf7f28121424c2b0102390be793
commit + 8829c9dc52c98cea8e96e92360f833527210dbea
blob - 543cf9592abfdbd7cbb62cebc66e76c5d277a6f9
blob + cd2e745cce476310d70af1e172c166da6799751d
--- stagit.c
+++ stagit.c
fputs("</h1><span class=\"desc\">", fp);
xmlencode(fp, description, strlen(description));
fputs("</span></td></tr>", fp);
- if (cloneurl[0]) {
- fputs("<tr class=\"url\"><td>git clone <a href=\"", fp);
- xmlencode(fp, cloneurl, strlen(cloneurl)); /* not percent-encoded */
- fputs("\">", fp);
- xmlencode(fp, cloneurl, strlen(cloneurl));
- fputs("</a></td></tr>", fp);
- }
+ fputs("<tr class=\"url\"><td>git clone git://", fp);
+ xmlencode(fp, strippedname, strlen(strippedname));
+ fputs("</a></td></tr>", fp);
fputs("<tr><td>\n", fp);
fprintf(fp, "<a href=\"%slog.html\">Log</a> | ", relpath);
fprintf(fp, "<a href=\"%sfiles.html\">Files</a> | ", relpath);