ifix submodule lookup in bare repos - stagit-gopher - A git gopher frontend. (mirror) Err bitreich.org 70 hgit clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ URL:git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ bitreich.org 70 1Log /scm/stagit-gopher/log.gph bitreich.org 70 1Files /scm/stagit-gopher/files.gph bitreich.org 70 1Refs /scm/stagit-gopher/refs.gph bitreich.org 70 1Tags /scm/stagit-gopher/tag bitreich.org 70 1README /scm/stagit-gopher/file/README.gph bitreich.org 70 1LICENSE /scm/stagit-gopher/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit 40f49c4d17d2cacc62c64e5f96522c3c14c40ab9 /scm/stagit-gopher/commit/40f49c4d17d2cacc62c64e5f96522c3c14c40ab9.gph bitreich.org 70 1parent f939dd0767be55df7983178f51c85d3e55054056 /scm/stagit-gopher/commit/f939dd0767be55df7983178f51c85d3e55054056.gph bitreich.org 70 hAuthor: Hiltjo Posthuma URL:mailto:hiltjo@codemadness.org bitreich.org 70 iDate: Thu, 6 Aug 2020 18:28:30 +0200 Err bitreich.org 70 i Err bitreich.org 70 ifix submodule lookup in bare repos Err bitreich.org 70 i Err bitreich.org 70 iSync fix from stagit. Err bitreich.org 70 i Err bitreich.org 70 iPatch by kst , thanks! Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M stagit-gopher.c | 5 ++--- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 2 insertions(+), 3 deletions(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/stagit-gopher.c b/stagit-gopher.c /scm/stagit-gopher/file/stagit-gopher.c.gph bitreich.org 70 i@@ -1051,7 +1051,6 @@ int Err bitreich.org 70 i writefilestree(FILE *fp, git_tree *tree, const char *path) Err bitreich.org 70 i { Err bitreich.org 70 i const git_tree_entry *entry = NULL; Err bitreich.org 70 i- git_submodule *module = NULL; Err bitreich.org 70 i git_object *obj = NULL; Err bitreich.org 70 i git_off_t filesize; Err bitreich.org 70 i const char *entryname; Err bitreich.org 70 i@@ -1105,13 +1104,13 @@ writefilestree(FILE *fp, git_tree *tree, const char *path) Err bitreich.org 70 i gphlink(fp, filepath, strlen(filepath)); Err bitreich.org 70 i fputs("|server|port]\n", fp); Err bitreich.org 70 i git_object_free(obj); Err bitreich.org 70 i- } else if (!git_submodule_lookup(&module, repo, entryname)) { Err bitreich.org 70 i+ } else if (git_tree_entry_type(entry) == GIT_OBJ_COMMIT) { Err bitreich.org 70 i+ /* commit object in tree is a submodule */ Err bitreich.org 70 i fputs("[1|m--------- ", fp); Err bitreich.org 70 i utf8pad(buf, sizeof(buf), entrypath, 50, ' '); Err bitreich.org 70 i gphlink(fp, buf, strlen(buf)); Err bitreich.org 70 i fprintf(fp, "|%s/file/.gitmodules.gph|server|port]\n", relpath); Err bitreich.org 70 i /* NOTE: linecount omitted */ Err bitreich.org 70 i- git_submodule_free(module); Err bitreich.org 70 i } Err bitreich.org 70 i } Err bitreich.org 70 i Err bitreich.org 70 .