icheck if LICENSE, README and .gitmodules is a file blob - 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 df3ea10eca41a20aed38a12d9189fb745075e913 /scm/stagit-gopher/commit/df3ea10eca41a20aed38a12d9189fb745075e913.gph bitreich.org 70 1parent 518556d7b0fd5fa215384926d558d29a3c42a5da /scm/stagit-gopher/commit/518556d7b0fd5fa215384926d558d29a3c42a5da.gph bitreich.org 70 hAuthor: Hiltjo Posthuma URL:mailto:hiltjo@codemadness.org bitreich.org 70 iDate: Sun, 8 May 2016 20:35:49 +0200 Err bitreich.org 70 i Err bitreich.org 70 icheck if LICENSE, README and .gitmodules is a file blob Err bitreich.org 70 i Err bitreich.org 70 idon't link to directory trees, etc. Thanks 600360 for reporting it! Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M stagit.c | 11 ++++++++--- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 8 insertions(+), 3 deletions(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/stagit.c b/stagit.c /scm/stagit-gopher/file/stagit.c.gph bitreich.org 70 i@@ -1085,12 +1085,17 @@ main(int argc, char *argv[]) Err bitreich.org 70 i } Err bitreich.org 70 i Err bitreich.org 70 i /* check LICENSE */ Err bitreich.org 70 i- haslicense = !git_revparse_single(&obj, repo, "HEAD:LICENSE"); Err bitreich.org 70 i+ haslicense = (!git_revparse_single(&obj, repo, "HEAD:LICENSE") && Err bitreich.org 70 i+ git_object_type(obj) == GIT_OBJ_BLOB); Err bitreich.org 70 i git_object_free(obj); Err bitreich.org 70 i+ Err bitreich.org 70 i /* check README */ Err bitreich.org 70 i- hasreadme = !git_revparse_single(&obj, repo, "HEAD:README"); Err bitreich.org 70 i+ hasreadme = (!git_revparse_single(&obj, repo, "HEAD:README") && Err bitreich.org 70 i+ git_object_type(obj) == GIT_OBJ_BLOB); Err bitreich.org 70 i git_object_free(obj); Err bitreich.org 70 i- hassubmodules = !git_revparse_single(&obj, repo, "HEAD:.gitmodules"); Err bitreich.org 70 i+ Err bitreich.org 70 i+ hassubmodules = (!git_revparse_single(&obj, repo, "HEAD:.gitmodules") && Err bitreich.org 70 i+ git_object_type(obj) == GIT_OBJ_BLOB); Err bitreich.org 70 i git_object_free(obj); Err bitreich.org 70 i Err bitreich.org 70 i /* log for HEAD */ Err bitreich.org 70 .