]> git.armaanb.net Git - stagit.git/commitdiff
minor style fix
authorHiltjo Posthuma <hiltjo@codemadness.org>
Fri, 29 Apr 2016 13:55:33 +0000 (15:55 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Fri, 29 Apr 2016 13:55:33 +0000 (15:55 +0200)
stagit.c

index 206dca191b5f833e4ca2e368c255565d166fbb36..1102915d8303df7af7977d437fe1f3c44870d361 100644 (file)
--- a/stagit.c
+++ b/stagit.c
@@ -708,7 +708,7 @@ writefilestree(FILE *fp, git_tree *tree, const char *branch, const char *path)
                        else
                                fprintf(fp, "%juB", (uintmax_t)filesize);
                        fputs("</td></tr>\n", fp);
-               } else if (git_submodule_lookup(&module, repo, entryname) == 0) {
+               } else if (!git_submodule_lookup(&module, repo, entryname)) {
                        fputs("<tr><td>m---------</td><td>", fp);
                        if ((moduleurl = git_submodule_url(module))) {
                                fprintf(fp, "<a class=\"module\" href=\"%s\">",