[PATCH v3 17/21] Display notes from namespace

Richard richard.maw at gmail.com
Sat Aug 20 16:51:10 CEST 2016


On 1 August 2016 at 22:35, Richard Maw <richard.maw at gmail.com> 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.


More information about the CGit mailing list