News for hackers. Stuff that matters.
Re:Set up your private Git hosting with Gogs by 0x0 on Monday April 21, 2014 @06:02PM (#7624251)
Noticed the release notes mention a forced password reset for all users because of a hash change.

Couldn't that be avoided by storing the hash type/version, and silently upgrade on the next successful login (when the password is available briefly in plaintext in the login request)?

Re:Set up your private Git hosting with Gogs by cridenour on Tuesday April 22, 2014 @12:11AM (#7625753)
This is what Django does. Works very well.
Re:Set up your private Git hosting with Gogs by bjohnso5 on Monday April 21, 2014 @05:40PM (#7624118)
I'm probably an awful person, but I laughed out loud when I saw this config key: DISENABLE_REGISTERATION
Re:Set up your private Git hosting with Gogs by atmosx on Monday April 21, 2014 @05:48PM (#7624172)
You can become a slightly better person by changing the line and making a pull request.

It's obvious that he is not a native speaker. Neither am I of course :-)

Re:Set up your private Git hosting with Gogs by bjohnso5 on Monday April 21, 2014 @06:09PM (#7624291)
Right you are, pull request complete!

https://github.com/gogits/gogs/pull/87

Re:Set up your private Git hosting with Gogs by dmacedo on Monday April 21, 2014 @06:25PM (#7624376)
Great to see this quick conversion from simple criticism to actual contribution!

Congrats on the positive influence and the step forward.

Re:Set up your private Git hosting with Gogs by digikata on Monday April 21, 2014 @06:59PM (#7624545)
Good for you! Though I wonder how much pain it would take to make it ENABLE_REGISTRATION ...
Re:Set up your private Git hosting with Gogs by atmosx on Monday April 21, 2014 @06:59PM (#7624544)
awesome :-)
Re:Set up your private Git hosting with Gogs by twic on Tuesday April 22, 2014 @06:45AM (#7626844)
This sounds like something from Spaceteam: http://www.sleepingbeastgames.com/spaceteam/
Re:Set up your private Git hosting with Gogs by smw on Monday April 21, 2014 @08:39PM (#7625023)
Besides the ease of installation, the thing that most impresses me is the very low resource usage and amazing responsiveness on even a tiny VPS.

    PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM% TIME+  Command
  31378 smw        20   0  262M 11516  5712 S  0.0  0.6 0:00.00 ./gogs web
11 MB of RSS? Quoting user 'pas' in an earlier comment, Gitlab wants about 2GB.

I have no idea how well it scales to a large user base, but I feel like this is going to become the go to option for side projects where you just want to share some private code with a friend or two.

Re:Set up your private Git hosting with Gogs by rakoo on Tuesday April 22, 2014 @08:38AM (#7627245)
How many repos do you have ? I don't expect gogs to come even close to what gitlab requires but I'd love to see some numbers.
Re:Set up your private Git hosting with Gogs by joe2010xtmf on Tuesday April 22, 2014 @11:57AM (#7628435)

  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND
15300 git 20 0 898m 36m 5280 S 0.0 3.7 3:48.61 gogs

Data from try.gogits.org, Gogs database has 78 users, 41 repositories

Re:Set up your private Git hosting with Gogs by lutusp on Tuesday April 22, 2014 @12:02PM (#7628464)
If you insert three or more spaces at the left column of your submitted text, the columns will line up when the post is displayed in the HN interface, and you can have rows directly beneath each other with no intervening linefeed.
Re:Set up your private Git hosting with Gogs by click170 on Monday April 21, 2014 @04:54PM (#7623772)
Gitlab is an option as well.

I found the README in their Github repo has additional info: https://github.com/gogits/gogs

It seems like they intend to manipulate git entirely from Go. Interesting stuff!

Re:Set up your private Git hosting with Gogs by dljsjr on Monday April 21, 2014 @07:54PM (#7624809)
Serious question about Gitlab and something that has always scared me away: How does it perform on a resource-constrained system? A lot of the hardware requirements[1] are presented in terms of <x> users, but the "minimum" RAM requirement seems really high. If I wanted to use this with a small team (~20 users) in a resource constrained environment it seems like it'd be way overkill.

[1]: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/inst...

Re:Set up your private Git hosting with Gogs by sytse on Tuesday April 22, 2014 @04:33AM (#7626443)
Good point, I've just changed the RAM requirement since it was a bit outdated, see https://gitlab.com/gitlab-org/gitlab-ce/commit/01799721dc6cb... for the change and new version on https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/inst...
Re:Set up your private Git hosting with Gogs by pas on Monday April 21, 2014 @08:04PM (#7624852)
It needs disk space mostly, and you can run it with 2G RAM, so that's 20 USD/month on a VPS with SSDs with 40G space.

If that's still not cheap enough, then you can of course use it on a non-SSD VPS, configure it to use fewer Ruby worker processes and so on.

The only problem I (we) have with GitLab, is that it doesn't cache git trees, so it always fires off a git process to read the repository. (At least when this came up they wasn't open to caching it in Redis. Maybe this changed, or maybe it's available in their Enterprise offering...)

Re:Set up your private Git hosting with Gogs by tokenizerrr on Monday April 21, 2014 @10:13PM (#7625377)
The ram usage is very high for an application of this type, if you compare it to something like Indefero [1]. The minimum requirements on the page you linked seem correct.

[1]: http://projects.ceondo.com/p/indefero/

Re:Set up your private Git hosting with Gogs by sdesol on Monday April 21, 2014 @09:42PM (#7625269)
Given the code churn for this project, it looks like they are working on this full-time.

Weekly Churn

http://screenshots.gitsense.com/gogits-weekly-churn.html

Monthly Churn

http://screenshots.gitsense.com/gogits-monthly-churn.html

Re:Set up your private Git hosting with Gogs by JaKXz on Monday April 21, 2014 @04:46PM (#7623702)
GitBlit is also a good option: http://gitblit.com/
Re:Set up your private Git hosting with Gogs by KevinEldon on Monday April 21, 2014 @07:28PM (#7624694)
Second this. I use GitBlit with my team. It is a very good fit for Java teams new to git who can't let code out if the firewall especially if most of the admins are strong in Windows; specifically I mean it is good for small teams in big corps.
Re:Set up your private Git hosting with Gogs by jwcrux on Monday April 21, 2014 @11:22PM (#7625602)
Somewhat off-topic, but I notice they are using xorm as their golang ORM. Anyone have experience with this? I use gorm, and I wonder how xorm compares.
Re:Set up your private Git hosting with Gogs by cnbuff410 on Monday April 21, 2014 @05:55PM (#7624213)
Complicate deployment is one of the major reason for me to stay away from using Self-hosted Git Server for my small team.

This one looks really interesting and promising. Being open source project is another major bonus.

Re:Set up your private Git hosting with Gogs by KevinEldon on Monday April 21, 2014 @07:30PM (#7624708)
Take a look @ GitBlit (http://www.gitblit.com/) It can run with only a dependency on JRE 1.6 or better.
Re:Set up your private Git hosting with Gogs by Matrixik on Tuesday April 22, 2014 @06:08AM (#7626729)
And Gogs will run with no dependencies... https://github.com/gogits/gogs#purpose
Re:Set up your private Git hosting with Gogs by auxbuss on Tuesday April 22, 2014 @04:09AM (#7626385)
On Debian-based systems you can install the gitolite package (from the repo) and then run: sudo dpkg-reconfigure gitolite. You can then start pushing and pulling.
Re:Set up your private Git hosting with Gogs by 64mb on Monday April 21, 2014 @05:09PM (#7623897)
Looks much easier to deploy than Gitlab.
Re:Set up your private Git hosting with Gogs by secstate on Monday April 21, 2014 @08:31PM (#7624979)
I was actually just thinking about how this clone would make a good blog post pointing out the pain that hovers around many substantial ruby/rails projects versus other tool sets. To be able to download the binary and just run a web app ... amazing. Considering the last time I tried to run Gitlab all kinds of libraries didn't install properly and workers wouldn't come up when they were supposed to.
Re:Set up your private Git hosting with Gogs by sytse on Tuesday April 22, 2014 @04:38AM (#7626458)
Rails apps are indeed a pain to install, that is why we made packages https://www.gitlab.com/downloads/ with Omnibus, we don't have a blog post about it but there is a video discussion https://www.youtube.com/watch?v=XTmpKudd-Oo
Re:Set up your private Git hosting with Gogs by mitchty on Monday April 21, 2014 @05:35PM (#7624077)
I just updated gitlab from 6.0 to 6.7 at work this weekend. That it does indeed.

Which reminds me I have to submit patches to their init script.

Rails is OK, but damn is it a bit of a time suck.

Re:Set up your private Git hosting with Gogs by sytse on Tuesday April 22, 2014 @04:40AM (#7626463)
Sorry to hear the init script is giving you problems. We look forward to your merge request.
Re:Set up your private Git hosting with Gogs by mitchty on Tuesday April 22, 2014 @09:08AM (#7627382)
Its nothing big but basically amounts to adjusting how the source logic and defaults fits. The existing setup is a bit wonky and doesn't work in non bash very well.

That and I have been hacking the init script to not always use sudo. I generally prefer that root not use sudo, and where I work that bits enforced heavily. So there is a bit of logic there as well to allow for sudo as root or not.

Hopefully I get to it today but if not its not a big deal really.

Re:Set up your private Git hosting with Gogs by Already__Taken on Tuesday April 22, 2014 @06:57AM (#7626884)
Onthe up side there are docker containers you can just deploy with gitlab. Testing went ok but I've not got the chance to use it really.
Re:Set up your private Git hosting with Gogs by Nux on Monday April 21, 2014 @05:33PM (#7624064)
Re:Set up your private Git hosting with Gogs by green7ea on Tuesday April 22, 2014 @12:55AM (#7625891)
I've recently installed cgit. I'm really happy with it's simplicity and easy of use.
Re:Set up your private Git hosting with Gogs by rakoo on Monday April 21, 2014 @06:08PM (#7624286)
I like it, but the blatant copy of the Github design makes me wonder: could one run a public Gogs instance ?

Anyway, that's a really slick work. Once again Go shines and make that project super easy to install.

Re:Set up your private Git hosting with Gogs by farresito on Tuesday April 22, 2014 @04:15AM (#7626398)
To be honest, I would say that Gitlab is more of a copy of Github than this project, and so far I haven't seen any problem with Gitlab.