Could Koha's git official repository be also set up for HTTP access?
Hi all, At work, I'm behind a proxy and firewall, that blocks most outgoing traffic, other than http (port 80) and https / SSL (port 443). Because of this, I can NOT clone with git's official repository, given that operations like: git clone git://git.koha.org/pub/scm/koha.git kohaclone ... use the "git" protocol (and not the "http" protocol) that uses a different port than http /https, and thus those operations are blocked. I have worked around this limitation, by using git with the copy of the "koha.git" file available at http://repo.or.cz that, although usually lagging some hours behind the official repository at koha.org, does provide the http interface to git command line operations. So, I can do this: git clone http://repo.or.cz/r/koha.git kohaclone Unfortunately, today I'm trying to do a git fetch from that repository, and the operation seems to be hanging halfway: myhost:~/mykohaclone # git fetch Getting alternates list for http://repo.or.cz/r/koha.git Getting pack list for http://repo.or.cz/r/koha.git Getting index for pack f9c9014fe52c94a9e55c41d8b0c652a8d8b27d4d Getting index for pack 749f1fcddab3af809cc3cdfba4642dc2deebda67 Getting pack 749f1fcddab3af809cc3cdfba4642dc2deebda67 which contains d010503b803cf1888caf25f6ac150a58b663dc21 walk d010503b803cf1888caf25f6ac150a58b663dc21 walk 1c1c585073c0fc2bcbe3957f1b57e7ef4c4410fa got 4b812f1b40e635216c278c61389628f12bdcf847 walk 4b812f1b40e635216c278c61389628f12bdcf847 walk b10cd79ba32cff7130edd75bcb3f6025a0240619 Getting pack f9c9014fe52c94a9e55c41d8b0c652a8d8b27d4d which contains b6c086302bcfbeca92184465ea28f6efd3ad0738 [ ...stops (hangs) here, without any further output] So, it would be nice, at this point, if I could "switch" git to use an http interface to the official git repository at koha.org. There are some instructions regarding this setup at: Setting up a git repository which can be pushed into and pulled from over HTTP(S) http://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-... Do you think that this could be done? Or is it already done? I would like to avoid doing things like setting up SSH tunnels over HTTPS and the like, if possible. Thanks in advance! :) Cheers, Ricardo Dias Marques lists AT ricmarques DOT net Installation Guide for Installing Koha 3 on openSUSE 11 http://wiki.koha.org/doku.php?id=opensuse_11.0
Hi Ricardo, On Thu, Jun 4, 2009 at 7:05 AM, Ricardo Dias Marques <lists@ricmarques.net> wrote:
So, it would be nice, at this point, if I could "switch" git to use an http interface to the official git repository at koha.org.
Cloning and fetching over HTTP now works: git clone http://git.koha.org/pub/scm/koha.git kohaclone Note that because this requires a cronjob (git-update-server-info) that I have set running every 10 minutes, cloning or fetching over HTTP can result in a repo that's slightly out of date with respect to the public repo. As a general note, unless you absolutely have to use HTTP because of restrictive firewall rules, using the Git protocol is more efficient. Regards, Galen -- Galen Charlton VP, Research & Development, LibLime galen.charlton@liblime.com p: 1-888-564-2457 x709 skype: gmcharlt
Hi Galen! On Thu, Jun 4, 2009 at 13:33, Galen Charlton <galen.charlton@liblime.com> wrote:
Cloning and fetching over HTTP now works:
git clone http://git.koha.org/pub/scm/koha.git kohaclone
Note that because this requires a cronjob (git-update-server-info) that I have set running every 10 minutes, cloning or fetching over HTTP can result in a repo that's slightly out of date with respect to the public repo. As a general note, unless you absolutely have to use HTTP because of restrictive firewall rules, using the Git protocol is more efficient.
That's great! Thank you very much for the lightning quick setup! I tested it now and it's working. :) I see that you have also already updated the wiki page accordingly: Version Control for Koha using Git [Koha Developer Wiki] http://wiki.koha.org/doku.php?id=en:development:git_usage ------------------------------ Cloning over HTTP To clone the repo using the Git protocol (git:), you need to be able to connect to port 9418 on git.koha.org. If for some reason you have a restrictive firewall that cannot be changed, and using SSH port forwarding is not an option, it is possible to clone the repo using HTTP: git clone http://git.koha.org/pub/scm/koha.git kohaclone Other git operations such as git fetch and git rebase will work normally over you clone using HTTP. Note that because this requires a cronjob (git-update-server-info) that is set to run every 10 minutes, cloning or fetching over HTTP can result in a repo that's slightly out of date with respect to the public repo. As a general note, unless you absolutely have to use HTTP because of restrictive firewall rules, using the Git protocol is more efficient, both for you and the server that hosts the repository. ----------------------------- Thank you also for updating the documentation about git in the Koha Developer wiki! :) Cheers, Ricardo
participants (2)
-
Galen Charlton -
Ricardo Dias Marques