cSvn-UI for SVN Repositories

cGit-UI – is a web interface for Subversion (SVN) Repositories. cSvn CGI script is writen in C and therefore it's fast enough

6 Commits   0 Branches   2 Tags
author: kx <kx@radix.pro> 2023-04-12 19:21:06 +0300 committer: kx <kx@radix.pro> 2023-04-12 19:21:06 +0300 commit: c7693c71799633467d154afe65f9b4810cec42f5 parent: c8b2593c941778dcfa307badf981160e19d2932b
Commit Summary:
Added repo-root variable for repositories which placed in subdirectory relative svnserve root
Diffstat:
1 file changed, 1 insertion, 0 deletions
diff --git a/csvncgi/csvn-cgi.c b/csvncgi/csvn-cgi.c
index 3a2688b..5996342 100644
--- a/csvncgi/csvn-cgi.c
+++ b/csvncgi/csvn-cgi.c
@@ -188,6 +188,7 @@ int main( int argc, char *argv[] )
     strbuf_addf( &buf, "ctx.query.search = '%s';\n", ctx.query.search );
     strbuf_addf( &buf, "\n" );
     strbuf_addf( &buf, "ctx.repo.name = %s\n", ctx.repo.name );
+    strbuf_addf( &buf, "ctx.repo.repo_root = %s\n", ctx.repo.repo_root );
     strbuf_addf( &buf, "ctx.repo.info = {\n" );
     switch( ctx.repo.info.kind )
     {