commit e360cf0f1232cab07c495cbc2a66773b031a4d39
parent aedc9b95747807bea36fca5effe8a01b9ff37cec
Author: Leah (ctucx) <leah@ctu.cx>
Date: Tue, 24 May 2022 00:04:52 +0200
parent aedc9b95747807bea36fca5effe8a01b9ff37cec
Author: Leah (ctucx) <leah@ctu.cx>
Date: Tue, 24 May 2022 00:04:52 +0200
remove: cloneurl
1 file changed, 0 insertions(+), 22 deletions(-)
diff --git a/stagit.c b/stagit.c @@ -67,7 +67,6 @@ static const char *repodir; static char *name = ""; static char *strippedname = ""; static char description[255]; -static char cloneurl[1024]; static char *submodules; static char *licensefiles[] = { "HEAD:LICENSE", "HEAD:LICENSE.md", "HEAD:COPYING" }; static char *license; @@ -566,13 +565,6 @@ writeheader(FILE *fp, const char *title, const char *mode) fputs("</strong><span class=\"desc\"> - ", fp); xmlencode(fp, description, strlen(description)); fputs("</span>\n", fp); - if (cloneurl[0]) { - fputs("<p class=\"url\">git clone <a href=\"", fp); - xmlencode(fp, cloneurl, strlen(cloneurl)); /* not percent-encoded */ - fputs("\">", fp); - xmlencode(fp, cloneurl, strlen(cloneurl)); - fputs("</a></p>\n", fp); - } fputs("</td></tr></table>\n<p>", fp); if (readme) { @@ -1328,20 +1320,6 @@ main(int argc, char *argv[]) fclose(fpread); } - /* read url or .git/url */ - joinpath(path, sizeof(path), repodir, "url"); - if (!(fpread = fopen(path, "r"))) { - joinpath(path, sizeof(path), repodir, ".git/url"); - fpread = fopen(path, "r"); - } - if (fpread) { - if (!fgets(cloneurl, sizeof(cloneurl), fpread)) - cloneurl[0] = '\0'; - checkfileerror(fpread, path, 'r'); - fclose(fpread); - cloneurl[strcspn(cloneurl, "\n")] = '\0'; - } - /* check CONTRIBUTING */ for (i = 0; i < sizeof(contributefiles) / sizeof(*contributefiles) && !contribute; i++) { if (!git_revparse_single(&obj, repo, contributefiles[i]) &&