Bug #1869
Copying of hooks dir doesn't work (for me)
100%
Description
Im using Redmine 1.2.1 and here’s my scm.jml:
production: auto_create: false deny_delete: false svn: path: /svnroot svnadmin: /usr/bin/svnadmin hooks: /path/to/svn-hooks url: https://redmine.mysite.com/svn
Repos are created just fine under /svnroot but hooks from /path/to/svn-hooks are being copied to /svnroot/hooks directory (instead of /svnroot/<repo_name>/hooks) and since this directory doesn’t exist it throws out an error:
/bin/cp: cannot create regular file `/svnroot/hooks/': Is a directory
Related issues
Associated revisions
History
#1 Updated by Mike Hagedon about 13 years ago
I had the same problem, and I think this is a bug. Line 104 of lib/scm_repositories_controller_patch.rb reads
args << "#{path}/hooks/”
If you change it to
args << "#{repath}/hooks/”
hook copying should work. At least it did in my case!
#2 Updated by Blaž Podržaj about 13 years ago
Thanx mate, it works!
#3 Updated by Andriy Lesyuk about 13 years ago
- Status changed from New to Open
- Target version set to 0.3.0
#4 Updated by Andriy Lesyuk about 13 years ago
- Due date set to 22 Oct 2011
- Status changed from Open to Closed
- % Done changed from 0 to 100
Thanks!