I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Bug #1869

Copying of hooks dir doesn't work (for me)

Added by Blaž Podržaj about 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
14 Oct 2011
Due date:
22 Oct 2011
% Done:

100%

Redmine version:
External issue:

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

Duplicated by SCM Creator (+Github) - Bug #1879: Hooks copy failed Closed 21 Oct 2011

Associated revisions

Revision 44 (diff)
Added by Andriy Lesyuk about 13 years ago

Fixed #1869 and #1879 (thanks Blaž Podržaj, Mike Hagedon and Clément Démoulins!)

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!

Also available in: Atom PDF

Terms of use | Privacy policy