From 01e205bbb660d25e7dcdff80435834a53ffb6c99 Mon Sep 17 00:00:00 2001 From: gbmor Date: Tue, 16 Feb 2021 23:01:22 -0500 Subject: added mention of the cache timeout for cgit, and mentioned the one-liner to add the repo owner to the config. suggested by ~yeti. --- pages/user-repos.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/pages/user-repos.md b/pages/user-repos.md index 76b4135..3fd17b6 100644 --- a/pages/user-repos.md +++ b/pages/user-repos.md @@ -15,6 +15,9 @@ bundled into `.tar.gz` archives and listed on the summary page. All repos can be viewed at [https://git.tilde.institute](https://git.tilde.institute) +**Note:** If a change doesn't appear in cgit immediately, wait a few +minutes. The cache will time out. + ## Creating the directory New users will not have to do this step. A `~/public_repos` link will @@ -51,15 +54,22 @@ Change into *that* directory and initialize a bare repo: cd foo.git; git init --bare ``` -Now that the bare repo has been created, edit the file called `config` -and append the following section: +Now that the bare repo has been created, we'll need to set some configuration +options. You may use this command from within the directory you just created: + +``` +git config --local gitweb.owner "$USER <$USER@tilde.institute>" +``` + +Or, you may manually edit the file called `config` and append the following +section: ``` [gitweb] owner = user_name ``` -Write out the text description of your repo into a file called +Then, write out the text description of your repo into a file called `description`: ``` -- cgit 1.4.1-2-gfad0