Actions
Defect #1774
closedRepository/Activity change listing displays erroneous added files
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
2008-08-12
Due date:
% Done:
0%
Estimated time:
Resolution:
Invalid
Affected version:
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.
Updated by Jean-Philippe Lang over 16 years ago
- 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.
Updated by blink eye over 16 years ago
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.
Actions