summaryrefslogtreecommitdiff
path: root/git-gmi
diff options
context:
space:
mode:
Diffstat (limited to 'git-gmi')
-rw-r--r--git-gmi/git.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/git-gmi/git.py b/git-gmi/git.py
index 034c2b2..71769cf 100644
--- a/git-gmi/git.py
+++ b/git-gmi/git.py
@@ -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