diff --git a/stagit.c b/stagit.c index 9e64069..7b16f32 100644 --- a/stagit.c +++ b/stagit.c @@ -654,7 +654,7 @@ writefilestree(FILE *fp, git_tree *tree, const char *branch, const char *path) { const git_tree_entry *entry = NULL; git_submodule *module = NULL; - const char *entryname; + const char *entryname, *moduleurl; char filepath[PATH_MAX], entrypath[PATH_MAX]; git_object *obj = NULL; git_off_t filesize; @@ -709,10 +709,12 @@ writefilestree(FILE *fp, git_tree *tree, const char *branch, const char *path) fprintf(fp, "%juB", (uintmax_t)filesize); fputs("\n", fp); } else if (git_submodule_lookup(&module, repo, entryname) == 0) { - - fprintf(fp, "