fix relpath for log
authorHiltjo Posthuma <hiltjo@codemadness.org>
Tue, 5 Jan 2016 20:43:26 +0000 (21:43 +0100)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Tue, 5 Jan 2016 20:43:26 +0000 (21:43 +0100)
stagit.c

index 3693efe5b9948021ba2fb3231eb52186a935d2ea..b3b644b262544c314b1b8c5080685c585d0fb287 100644 (file)
--- a/stagit.c
+++ b/stagit.c
@@ -1022,9 +1022,8 @@ main(int argc, char *argv[])
        /* log for HEAD */
        mkdir("log", 0755);
        fp = efopen("log.html", "w");
-       relpath = "../";
-       writeheader(fp);
        relpath = "";
+       writeheader(fp);
        writelog(fp, "HEAD");
        writefooter(fp);
        fclose(fp);