Project

General

Profile

Actions

Defect #11690

closed

Duplicate entry when importing git repository changesets

Added by Rui Gonçalves over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
-
Category:
SCM
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Hi there!

I'm moving all the git repositories from github to Redmine, since my company intend to use it handle our project management tasks.
After creating a new project, the git repository is automatically initialized through gitolite. After that, I clone the git repository from github into my local workstation, update the remote with my Redmine / Git server address and push the repository into it.

After that, I think that the changesets insertion process into the database is started when I access the project's Repository section for the first time. However, the process is interrupted, being generated a 500 error page.

On the production log, is being registered the following error:
ActiveRecord::StatementInvalid (Mysql::Error: Duplicate entry '13-c2c826115ca4fd31c047781c515c8a19bfe50a12' for key 'changesets_repos_rev': INSERT INTO `changesets` (`committer`, `repository_id`, `committed_on`, `scmid`, `comments`, `revision`, `commit_date`, `user_id`) VALUES('user <>', 13, '2012-04-24 09:07:39', 'c2c826115ca4fd31c047781c515c8a19bfe50a12', 'close #2 - message\nsee #3 - partially removed mentions to project - lots more to clean', 'c2c826115ca4fd31c047781c515c8a19bfe50a12', '2012-04-24 09:07:39', NULL)):

I would like to say that I've use the exactly same approach to an other project and all went well.

Here goes my system information:
Redmine Version - 1.3.2

Ruby version 1.8.7 (i686-linux)
RubyGems version 1.8.15
Rack version 1.3
Rails version 2.3.14
Active Record version 2.3.14
Active Resource version 2.3.14
Action Mailer version 2.3.14
Active Support version 2.3.14
Edge Rails revision unknown
Application root /usr/share/redmine
Environment production
Database adapter mysql
Database schema version 20110902000000

About your Redmine plugins
Redmine Git Hosting Plugin 0.4.2

Thanks in advance for the help,
Best regards

Actions #1

Updated by Toshi MARUYAMA over 11 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

Please contact plugin author.
Redmine 1.3.2 checks duplicates.
source:tags/1.3.2/app/models/repository/git.rb#L153

Actions #2

Updated by Toshi MARUYAMA over 11 years ago

  • Category changed from Database to SCM
  • Affected version (unused) set to 1.3.2
  • Affected version set to 1.3.2
Actions

Also available in: Atom PDF