RE: [gitorious] LDAP authentication with short user names

2012-09-21 Thread Peter Kjellerstedt
Couldn't you just change the validation in app/models/user.rb that validates the length of the login to be between 3 and 40 characters to allow 2 to 40 instead? That is what we have done here... //Peter From: gitorious@googlegroups.com [mailto:gitorious@googlegroups.com] On Behalf Of Marius

Re: [gitorious] LDAP authentication with short user names

2012-09-21 Thread Ken Dreyer
On Fri, Sep 21, 2012 at 6:52 AM, Peter Kjellerstedt peter.kjellerst...@axis.com wrote: Couldn’t you just change the validation in app/models/user.rb that validates the length of the login to be between 3 and 40 characters to allow 2 to 40 instead? That is what we have done here… My concern

Re: [gitorious] defaulting enable_repository_directory_sharding to false on existing sharded installations

2012-09-21 Thread Thomas Kjeldahl Nilsson
On 09/21/2012 12:55 AM, Russell Jackson wrote: Second: having trouble reproducing your issue. I fired up a cleanroom Gitorious VM, enabled sharding, created projects/repos, pushed code, turned off sharding, pushed more code without issue. Also tried the reverse: created

Re: [gitorious] Migrating gitorious to another machine

2012-09-21 Thread Thomas Kjeldahl Nilsson
Hm, don't have any further suggestions just off the top of my head. Marius, any bright ideas? -- Best regards / vennlig hilsen Thomas Kjeldahl Nilsson http://gitorious.com On Friday, September 21, 2012 at 9:49 PM, Luis Tiago C Eterovick wrote: The hooks dir seems fine and gitorious_user

Re: [gitorious] defaulting enable_repository_directory_sharding to false on existing sharded installations

2012-09-21 Thread Russell Jackson
I think I tracked this down to how 'gitdir' is calculated in the post-receive hook. irb(main):007:0 gitdir = '/git/gitorious/foo/bar.git'= /git/gitorious/foo/bar.git irb(main):008:0 hashed_dir = gitdir.split('/')[-3,3].join('/').split('.').first = gitorious/foo/bar irb(main):005:0 gitdir =

Re: [gitorious] defaulting enable_repository_directory_sharding to false on existing sharded installations

2012-09-21 Thread Russell Jackson
On Friday, September 21, 2012 9:52:45 PM UTC-7, Russell Jackson wrote: I think I tracked this down to how 'gitdir' is calculated in the post-receive hook. Whoops. I meant hashed_path not gitdir. Then... I looked at the line after and noticed that it gets modified by stripping