Koozali.org: home of the SME Server

Obsolete Releases => SME 8.x Contribs => Topic started by: Marco Hess on May 09, 2012, 06:55:26 AM

Title: smeserver-git contrib
Post by: Marco Hess on May 09, 2012, 06:55:26 AM
Hi All,

For the past few weeks I have been working on a new contrib that integrates git on an SME server to setup centralised git repositories (like the smeserver-subversion contrib).

It is still very alpha (and probably with a few issues still in there) but already quite functional on my SME8 server.

There is currently no RPM for it (yet) but if you are into using git and a developer, you can clone a copy of the package source code from my server and have a look.

A summary list of the features and clone instructions are available here: http://wiki.contribs.org/Git

Comments, suggestions, thoughts are all very welcome.

Regards,

Marco
Title: Re: smeserver-git contrib
Post by: cactus on May 09, 2012, 08:46:22 PM
Nice, I have never found the time to also make a git contrib. I will have a look at it this weekend perhaps. Does it also allow for other webbased 'frontends'?
Title: Re: smeserver-git contrib
Post by: Marco Hess on May 09, 2012, 11:07:11 PM
Does it also allow for other webbased 'frontends'?

I use gitweb or the moment as it comes standard with git,  but it is a bit crude and does not easily support local versus internet and private versus public projects, so i am not entirely happy with it and is probably the least functional.

Any suggestions? I was just looking at indefero. Its  PHP and may be more easily integrated than some of the ruby based git web front ends.

I was also thinking of integrating gerrit into it down the line.
Title: Re: smeserver-git contrib
Post by: cactus on June 17, 2012, 06:40:19 PM
Marco,

I finally had some time to take a look at your contrib and have taken a shot at separating git and gitweb into two packages and formatted stuff so that it can be made into a SRPM which can be imported into the SME Server build system a little more easy.

You can find my changes at github: https://github.com/jmartens/smeserver-git/ . For now I have made two branches to keep your work and mine for traceability. I also pasted the SRPMs there.

I have not have time to fully test and investigate everything. I guess some of the event and action stuff might be in the wrong package.
Title: Re: smeserver-git contrib
Post by: Marco Hess on June 19, 2012, 01:59:05 AM
Hi Jonathan,

Thanks for having a go at SRPMs for the contrib. I'll try to have a good look soon but I am a bit busy at the moment.

I am worried about the split of gitweb and git. At the httpd.conf level there is quite some integration between the two and various of the action scripts have things in them related to setting up the git repo for gitweb support so that might take some untangling.

Marco
Title: Re: smeserver-git contrib
Post by: animare on January 07, 2013, 08:54:42 PM
Any updates on the development of the contrib.
It does not work for me, when creating a git repo from the server-manager I get:

"Operation status report
There was an internal error while creating the Git repository."
Title: Re: smeserver-git contrib
Post by: Marco Hess on February 10, 2013, 09:51:42 AM
Any updates on the development of the contrib.

I did a fair about of work on this contrib and now have RPM's available from my personal repository. Have a look at the wiki page for instructions how to install.

http://wiki.contribs.org/Git

I tested them on a clean and up to date SME8 system and install Ok. smeserver-manager panels, git clone, pull, push and the gitweb interface and github theme all work.

Feedback appreciated.

Next on the list is a couple of tweaks in the gitweb interface and the partially implemented feature for gitweb to keep non-anonymous repositories from being viewed without a login when viewed from the Internet.

Marco
Title: Re: smeserver-git contrib
Post by: animare on February 10, 2013, 10:57:40 PM
Hi Marco,

Thanks for all the work you've done on this!
I can now create a repo no problem (My repository is called testing.git), but unfortunately I cannot access the urls. They come up as not available.
However if I use a sub domain I have directed at the primary ibay I get "forbidden. You don't have permission to access /git/testing.git on this server."
I had a similar problems with websites installed in ibays and it was either permissions of files or I needed to add symlinks in a .htacess file.

I had a look through your template files but didn't want to change anything. I'll have a tinker and see if I can get it working my end.

Thanks
Title: Re: smeserver-git contrib
Post by: Marco Hess on February 11, 2013, 12:27:54 AM
The contrib is no longer setup to use subdomains. That appeared to have too much trouble with loosing the server-manager interface and various other things. Git is accessed through the /git path of the primary domain of the server.

The URL https://yourserver/git is used to access the GitWeb interface.

The URL https://yourserver/git/testing.git is what you use to clone the repository using your git client. You can't browse to that URL.

Try to clone and access the repository from your git client and check your logs /var/log/httpd/error_log, /var/log/httpd/access_log and /var/log/httpd/rewrite_log
to see what is going on.

Marco

Title: Re: smeserver-git contrib
Post by: animare on February 11, 2013, 02:25:55 AM
I've found that it is not an issue with your contrib, it's the way I have the server setup. I can access gitweb from my local ip address.
Thanks
Title: Re: smeserver-git contrib
Post by: animare on July 10, 2013, 03:48:34 PM
Hi Marco,

I've come back to this problem, where I cannot access gitweb. e.g. http://myserver.com/git
just returns:

Quote
Not Found
The requested URL /git was not found on this server.

Thanks for your help,

Antony
Title: Re: smeserver-git contrib
Post by: Stefano on July 10, 2013, 04:38:55 PM
antonyanimare:

please report the output if
Code: [Select]
rpm -qa | grep git

and try to look into  /var/log/httpd/access_log and error_log
Title: Re: smeserver-git contrib
Post by: animare on July 10, 2013, 05:04:38 PM
libnemesi-0.6.9-0.1.20090422git.el5
xz-libs-4.999.9-0.3.beta.20091007git.el5
xz-4.999.9-0.3.beta.20091007git.el5
gitk-1.7.11.3-1.el5.rf
smeserver-gitweb-1.0.0-11
gitweb-1.7.11.3-1.el5.rf
git-1.7.11.3-1.el5.rf
smeserver-gitweb-theme-1.0.0-4
git-gui-1.7.11.3-1.el5.rf
smeserver-git-1.0.0-33

I'm not get anything suspicious in my logs.
Title: Re: smeserver-git contrib
Post by: Stefano on July 10, 2013, 05:06:31 PM
did you try to access it via

https://myserver.com/git

?
Title: Re: smeserver-git contrib
Post by: animare on July 10, 2013, 05:07:38 PM
Yep,

Do you think I should remove the git rpm?
I had git installed before I installed Marco's contrib.

I could backup the git repo's and install from fresh
Title: Re: smeserver-git contrib
Post by: Stefano on July 10, 2013, 05:15:34 PM
sincerely? I don't know.. :-)

but if you feel confortable with your backup, I would suggest you to try..

let us know
Title: Re: smeserver-git contrib
Post by: animare on July 15, 2013, 01:45:59 PM
Tried on a fresh install of sme server 8  with no luck.
Getting in contact with Marco, creator of the contrib to see if he has an answer to the problem
Title: Re: smeserver-git contrib
Post by: Franco on July 21, 2013, 12:41:52 AM
I receive the following error when cloning:
Code: [Select]
git clone https://git.through-ip.com/smeserver-git.git
Cloning into 'smeserver-git'...
error: SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://git.through-ip.com/smeserver-git.git/info/refs
fatal: HTTP request failed

Thanks,
Title: Re: smeserver-git contrib
Post by: Marco Hess on July 21, 2013, 06:28:57 AM
Did you read http://wiki.contribs.org/Git#Notes_on_using_SME_Server_Git ?

Also, even though the same, it may be better if you clone from GitHub as there you can put in a pull request for any changes or updates.

See for URLs' here: http://wiki.contribs.org/Git#Installation

I receive the following error when cloning:
Code: [Select]
git clone https://git.through-ip.com/smeserver-git.git
Cloning into 'smeserver-git'...
error: SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://git.through-ip.com/smeserver-git.git/info/refs
fatal: HTTP request failed

Thanks,