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 =
'/git/gitorious/484/4ad/b02c777df03449dc0990cfe4aeface1de0.git'
=> "/git/gitorious/484/4ad/b02c777df03449dc0990cfe4aeface1de0.git"
irb(main):006:0> hashed_dir =
gitdir.split('/')[-3,3].join('/').split('.').first
=> "484/4ad/b02c777df03449dc0990cfe4aeface1de0"
When the push processor attempts to look up the repository with
find_by_hashed_path on the first example (non-hashed), it returns nil.
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]