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 #1800

UnknownAttributeError 'extra_report_last_commit' when adding an existing git repository in redmine

Added by Bernd Vogt almost 13 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Critical
Assignee:
Target version:
Start date:
10 Jul 2011
Due date:
19 Sep 2011
% Done:

100%

Redmine version:
External issue:

Description

Belongs to Redmine 1.2.x

Adding an existing git repository under <project> → Settings → Repsository doesn’t work with installed SCM creator under Readmine 1.2 anymore. It seems that a new attribute 'extra_report_last_commit’ was introduced which is not supported by SCM createor yet.

Unless this is fixed, SCM creator can’t be used with Redmine 1.2.x

See: http://www.redmine.org/issues/8642

attribute_patch.diff View (3.56 KB) Roland Firmont, 26 Jul 2011 11:20


Related issues

Related to SCM Creator (+Github) - Bug #2040: ActionView::Template::Error (undefined method `new_record?' for nil:NilClass) Closed 28 May 2012 06 Jun 2012

Associated revisions

Revision 34 (diff)
Added by Andriy Lesyuk over 12 years ago

Fixes for 1.2.x (#1800)

History

#1 Updated by Andriy Lesyuk almost 13 years ago

  • Status changed from New to Open
  • Assignee set to Andriy Lesyuk

Thank you very much for reporting! Will do my best to fix this issue asap.

#2 Updated by Andriy Lesyuk almost 13 years ago

  • Target version set to 0.2.0

#3 Updated by Roland Firmont over 12 years ago

Bug is caused by a change in edit function of repositories_controller. There is a new field used to store extra information for repositories (could be used as a replacement for the created_with_scm field).

Attached patch fixes creation of git repositories.

#4 Updated by Matteo Pescarin over 12 years ago

Since I was having the very same problem with redmine 1.2.1, I’ve applied the patch, tried it and it seems to work fine, that is: I’ve created a new project, went to the repo page, and tried to create a new git repo.
the log reports 200 OK on creation, and I see no error.
When going to the repo page of the project I get a 404 and the repo in the fs is not there (not even the dir has been created), and no errors whatsoever in the logs.
Consider that the user executing rails has writing permissions on /var/lib/git/

#5 Updated by Andriy Lesyuk over 12 years ago

  • Status changed from Open to In Progress
  • % Done changed from 0 to 30

#6 Updated by Andriy Lesyuk over 12 years ago

When going to the repo page of the project I get a 404 and the repo in the fs is not there (not even the dir has been created), and no errors whatsoever in the logs.

With the same symptoms I got errors in logs:

Creating SVN reporitory: /var/lib/svn/test-repo
Repository creation failed

The reason wass write permission...

#7 Updated by Andriy Lesyuk over 12 years ago

  • % Done changed from 30 to 80

Thank you very much, Roland, for your find and patch!

Included changes into SVN! Please confirm it works.

#8 Updated by Andriy Lesyuk over 12 years ago

  • Due date set to 19 Sep 2011
  • Status changed from In Progress to Closed
  • % Done changed from 80 to 100

I believe the issue has been resolved.

Also available in: Atom PDF

Terms of use | Privacy policy