Project

General

Profile

Actions

Defect #14576

open

fetch_changesets on git push can fail

Added by C Tibirna over 11 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

We have a little git hook that calls "rake redmine:fetch_changesets" at each successful push in our git server.

All functioned well for a few months, then we got the error message listed below.

The particular push that triggered the error is not different in any particular way. It is a merge and it touched an above average number of files, but such commits we did have before in this repo.

There is no visible adverse effect in the Repository page.

remote: rake aborted! 
remote: Mysql::Error: Duplicate entry '22-b93e98954d4f843238035a9f73e053c2da122604' for key 'changesets_repos_rev': INSERT INTO `changesets` (`comments`, `commit_date`, `committed_on`, `committer`, `repository_id`, `revision`, `scmid`, `user_id`) VALUES (?, ?, ?, ?, ?, ?, ?, ?) 
remote: /pmi/bibgit/webpages/redmine/app/models/repository/git.rb:222:in `save_revision' 
remote: /pmi/bibgit/webpages/redmine/app/models/repository/git.rb:211:in `save_revisions' 
remote: /pmi/bibgit/webpages/redmine/app/models/repository/git.rb:208:in `save_revisions' 
remote: /pmi/bibgit/webpages/redmine/app/models/repository/git.rb:207:in `each' 
remote: /pmi/bibgit/webpages/redmine/app/models/repository/git.rb:207:in `save_revisions' 
remote: /pmi/bibgit/webpages/redmine/app/models/repository/git.rb:154:in `fetch_changesets' 
remote: /pmi/bibgit/webpages/redmine/app/models/repository.rb:333:in `fetch_changesets' 
remote: /pmi/bibgit/webpages/redmine/app/models/repository.rb:331:in `fetch_changesets' 
remote: /pmi/bibgit/webpages/redmine/app/models/repository.rb:330:in `each' 
remote: /pmi/bibgit/webpages/redmine/app/models/repository.rb:330:in `fetch_changesets' 
remote: /pmi/bibgit/webpages/redmine/lib/tasks/redmine.rake:47 
remote: Tasks: TOP => redmine:fetch_changesets 
remote: (See full trace by running task with --trace) 

No data to display

Actions

Also available in: Atom PDF