From 1c8d1a0f2e017c8375e080d691dc2f0af10dd9ae Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Fri, 19 Jun 2020 19:26:58 +0800 Subject: Main branch now customizable, annotated configs --- git-gmi/git.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git-gmi/git.py') diff --git a/git-gmi/git.py b/git-gmi/git.py index a0eb5e0..2b7fc33 100644 --- a/git-gmi/git.py +++ b/git-gmi/git.py @@ -26,14 +26,14 @@ class GitGmiRepo: f"# {self.name}\n" f"=> {CGI_PATH} {GIT_GMI_SITE_TITLE}\n" f"=> {CGI_PATH}{self.name}/summary summary\n" - f"=> {CGI_PATH}{self.name}/tree/master/ tree\n" + f"=> {CGI_PATH}{self.name}/tree/{MAIN_BRANCH}/ tree\n" f"=> {CGI_PATH}{self.name}/log log\n\n" ) return header def view_summary(self) -> str: response = f"{STATUS_SUCCESS} {META_GEMINI}\n" + self.generate_header() - tree = self.get_tree("master") + tree = self.get_tree(MAIN_BRANCH) trls = self.list_tree(tree) found_readme = False for item in trls: -- cgit v1.2.3