Showing 2 changed files with 8 additions and 2 deletions
+5
gitprep.conf
... ...
@@ -5,6 +5,11 @@
5 5
 ;;; This value is used by ssh git repository URL.
6 6
 ;ssh_port=55555
7 7
 
8
+;;; SSH repository url base
9
+; For exampke, If you set this value to /git, SSH repository url become
10
+; ssh://kimoto@59.106.185.196/git/kimoto/gitprep.git
11
+;ssh_repo_url_base=/git
12
+
8 13
 ;;; Git command path
9 14
 ;;; By default, git command path is automatically detected
10 15
 ;;; from PATH enviroment variable or /usr/bin/git or /usr/local/bin/git
+3 -2
templates/project.html.ep
... ...
@@ -51,9 +51,10 @@
51 51
   my $ssh_port = config->{basic}{ssh_port};
52 52
   my $rep_home = app->git->rep_home;
53 53
   my $execute_user = getpwuid($>);
54
+  my $ssh_rep_url_base = defined app->config->{basic}{'ssh_repo_url_base'}
55
+    ? app->config->{basic}{'ssh_repo_url_base'} : $rep_home;
54 56
   my $ssh_rep_url = "ssh://$execute_user\@" . $url->host
55
-    . ($ssh_port ? ":$ssh_port" : '') . "$rep_home/$user/$project.git";
56
-
57
+    . ($ssh_port ? ":$ssh_port" : '') . "$ssh_rep_url_base/$user/$project.git";
57 58
 %>
58 59
 
59 60
 % layout 'common', title => "$user/$project";