From mboxrd@z Thu Jan 1 00:00:00 1970 From: richard.maw at gmail.com (Richard) Date: Sat, 20 Aug 2016 15:51:10 +0100 Subject: [PATCH v3 17/21] Display notes from namespace In-Reply-To: <20160801213553.16807-18-richard.maw@gmail.com> References: <20160801213553.16807-1-richard.maw@gmail.com> <20160801213553.16807-18-richard.maw@gmail.com> Message-ID: On 1 August 2016 at 22:35, Richard Maw wrote: > diff --git a/cgit.c b/cgit.c > index d664ab4..321a00f 100644 > --- a/cgit.c > +++ b/cgit.c > @@ -586,7 +586,26 @@ static int prepare_repo_cmd(void) > * load local configuration from the git repository, so we do them both while > * the HOME variables are unset. */ > setup_git_directory_gently(&nongit); > - init_display_notes(NULL); > + if (get_git_namespace()) { This should have been ctx.repo->namespace, since get_git_namespace() always returns a non-NULL string. It returns the empty string when there is no namespace. The new tip of the branch is 59b84b1640ed5def5df659c6269479a463524b5d.