[PATCH v8 1/1] ui-shared: allow to split the repository link
John Keeping
john at keeping.me.uk
Sun Mar 12 19:02:24 CET 2017
On Sun, Mar 12, 2017 at 06:56:03PM +0100, Petr Vorel wrote:
> > Teach cgit split the repository link in the top of repository "summary"
> > view. This emulates the same behaviour as it's in gitweb.
>
> > This behaviour is not implemented for repositories which have
> > "repo.name" set different than "repo.url".
>
> > Signed-off-by: Petr Vorel <petr.vorel at gmail.com>
> > Cc: "Jason A. Donenfeld" <Jason at zx2c4.com>
> > Cc: John Keeping <john at keeping.me.uk>
> > Reviewed-by: John Keeping <john at keeping.me.uk>
> > ---
> > cgitrc.5.txt | 4 +++-
> > ui-shared.c | 28 +++++++++++++++++++++++++++-
> > 2 files changed, 30 insertions(+), 2 deletions(-)
>
> > ---
> > v7->v8: add missing free().
> actually, this breaks even more tests, please use v7.
> Patch v7 breaks t0103-log.sh, but v8 breaks even some tests before: t0104-tree.sh.
> Failure is in "summary, refs, log, tree, commit, diff" links
>
> John, I suppose free() shouldn't be used. Or am I missing something and I should free
> something else?
It's the return value of cgit_repourl() that needs to be freed, not the
name. You'll need a new local variable for the result of calling
cgit_repourl() which then needs to be freed in the loop.
More information about the CGit
mailing list