Git repositories can be available thru http dav protocol.
To setup git thru dav, here are some steps you need to follow :
1) set use_dav to yes and set use_ssh to no in scmgit.ini
-2) copy the httpd.conf.d/plugin-scmgit-dav.inc in your httpd config directory
-3) configure the httpd.conf.d/plugin-scmgit-dav.inc according to your installation
-4) restart httpd
-5) the cronjob should do the job now when you add new repository
+2) set httpd_reload_cmd in scmgit.ini according to your linux distribution
+3) copy the httpd.conf.d/plugin-scmgit-dav.inc in your httpd config directory
+4) configure the httpd.conf.d/plugin-scmgit-dav.inc according to your installation
+5) restart httpd
+6) the cronjob should do the job now when you add new repository
$f = fopen(forge_get_config('config_path').'/httpd.conf.d/plugin-scmgit-dav.inc','a');
fputs($f,'Use Project '.$project_name."\n");
fclose($f);
- system("service httpd reload");
+ system(forge_get_config('httpd_reload_cmd','scmgit'));
}
}
if (forge_get_config('use_ssh','scmgit')) {
; used if use_dav is set to yes
scm_root = "scmrepos/git"
+; this value is used when dav is set to yes. To reload httpd configuration
+httpd_reload_cmd = "service httpd reload"
+; debian specific :
+;httpd_reload_cmd = "service apache2 reload"
+
; use_dav or use_ssh is exclusive. you cannot enable dav with ssh, or ssh with dav
use_dav = yes
use_ssh = no