[Koha-devel] Could Koha's git official repository be also set up for HTTP access?

Ricardo Dias Marques lists at ricmarques.net
Thu Jun 4 13:05:50 CEST 2009


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-http.txt


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



More information about the Koha-devel mailing list