Defect #1774
closed
Repository/Activity change listing displays erroneous added files
Added by blink eye almost 18 years ago.
Updated almost 18 years ago.
Description
Clicking on a git SHA1 value in Activity/Repository displays files, which have not been added with that commit (but during a commit way before). This issue is reproducable when cleaning up the cached history:
redmine_db=# delete from changesets;
redmine_db=# alter SEQUENCE changesets_id_seq RESTART 1;
Happens with git-core 1.5.6.3-1, postgresql-8.3.3-1, ruby-1.8.7.22 and redmine-devel-1725.
- Status changed from New to Closed
- Affected version (unused) deleted (
devel)
- Resolution set to Invalid
You get this problem after reseting changesets_id sequence because it's used as a foreign key in changes table (this table contains file changes).
So if you want to delete changesets table content, delete changes table content as well.
thanks a lot for pointing that out. the correct way of resetting cached git entries seems to be:
redmine=# delete from changesets;
redmine=# alter SEQUENCE changesets_id_seq RESTART 1;
redmine=# delete from changes;
redmine=# alter SEQUENCE changes_id_seq RESTART 1;
you may need to do that if you ever rebase or ammend your git history.
Also available in: Atom
PDF