summaryrefslogtreecommitdiff
path: root/git-gmi
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@macaw.me>2020-07-28 21:36:16 +0800
committerFrederick Yin <fkfd@macaw.me>2020-07-28 21:36:16 +0800
commit668353172f4874723f16063d08dedc2a9283331e (patch)
tree79aef8d1bd3b57dd913cc3072a6a46e36657eedd /git-gmi
parent9ed6b48a00d71c5a37e0ff5f182fc45022bdc879 (diff)
Fix _generate_header calls
Diffstat (limited to 'git-gmi')
-rw-r--r--git-gmi/git.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-gmi/git.py b/git-gmi/git.py
index d65c937..8a91f0b 100644
--- a/git-gmi/git.py
+++ b/git-gmi/git.py
@@ -305,7 +305,7 @@ class GitGmiRepo:
items = len(contents)
response = (
f"{STATUS_SUCCESS} {META_GEMINI}\r\n"
- + self.generate_header()
+ + self._generate_header()
+ f"## {self.name}{'/' if location else ''}{'/'.join(location)}/"
f" | {items} {'items' if items > 1 else 'item'}\n\n"
)
@@ -340,7 +340,7 @@ class GitGmiRepo:
blob = self._get_blob(branch, location)
response = (
f"{STATUS_SUCCESS} {META_GEMINI}\r\n"
- + self.generate_header()
+ + self._generate_header()
+ f"## {self.name}/{'/'.join(location)} | {convert_filesize(blob.size)}\n\n"
f"=> {blob.name}?raw view raw\n\n"
f"```\n"