Implements Smart HTTP Support for Gitlab.
U can git clone http://localhost/git/repo.git now!
git clone http://localhost/git/repo.git
Also support protected branches.
Use a gem from my github repo SaitoWu/grack.git, we can fork a Gitlab version for stable.
Need review and Discuss.
add grack to support smart http protocal for git
mount grack to git, u can 'git clone http://localhost/git/xx.git' now
integrate with gitlabhq authority
implements protected branches to smart http protocal
@SaitoWu forked. Update code please
use gitlabhq/grack instead of my fork
Grack also has a wiki page: https://github.com/SaitoWu/grack/wiki
i've copied wiki home page
great. thank you :)
got some errors trying to access project via web like https://dev.gitlabhq.com/projectname
NoMethodError (undefined method `valid_password?' for nil:NilClass):
btw cloning works great!!!
git clone https://dev.gitlabhq.com/git/zzz.git
Cloning into zzz...
remote: Counting objects: 15000, done.
remote: Compressing objects: 100% (7261/7261), done.
remote: Total 15000 (delta 11151), reused 10257 (delta 7537)
Receiving objects: 100% (15000/15000), 11.93 MiB | 695 KiB/s, done.
Resolving deltas: 100% (11151/11151), done.
@randx I've already tested view via web. It works for me ..
And grack is mounted at /git. seems like it will not effect the path like https://dev.gitlabhq.com/projectname, if the projectname != git
projectname != git
@SaitoWu it works great for projectname but falls on gitlab, gitlab_site.. etc
@randx got it! i'll fix it soon.
@randx Is this a rails issue?
I mounted grack in /git, but rails matches it with /git*
Also, U can got same issue on /info/resque, it will matches /info/resque*
As i know, the new rails router can't set anchor like ^ or $ on the matcher.
Did u have any solutions?
we dont allow for projects to start from . so lets change it to
:at => "/.git" оr something like this
:at => "/.git"
user = User.find_by_email(email)
return false unless user.valid_password?(password)
the second line has a NPE. need a try method.
i'll fix it.
U mean git clone http://localhost/.git/webx.git ? it's a little bit weird.
git clone http://localhost/.git/webx.git
even a /git is a bit wierd. Its cool to have http://localhost/webx.git
I need to investigate the Rails router.
need some time...
A new PR has been send.
Works with http://localhost/webx.git now!