~fkfd/git.gmi

0d5ff48ee49971d7b4c21fc42c7cdb5cc829b8bd — Frederick Yin 1 year, 2 months ago 5d8be65
Only display non-remote refs
1 files changed, 4 insertions(+), 3 deletions(-)

M git-gmi/git.py
M git-gmi/git.py => git-gmi/git.py +4 -3
@@ 110,9 110,10 @@ class GitGmiRepo:
        response = f"{STATUS_SUCCESS} {META_GEMINI}\n" + self.generate_header()
        refs = self.get_refs()
        for ref in refs:
            response += (
                f"## {ref['shorthand']}\n=> tree/{ref['shorthand']}/ view tree\n\n"
            )
            if ref["shorthand"].find("/") == -1:
                response += (
                    f"## {ref['shorthand']}\n=> tree/{ref['shorthand']}/ view tree\n\n"
                )
        return response

    @classmethod