Skip to content

Old statistics are retained after deleting and recreating a repository with the same name #642

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gitblit opened this issue Aug 12, 2015 · 6 comments

Comments

@gitblit
Copy link
Collaborator

gitblit commented Aug 12, 2015

Originally reported on Google Code with ID 346

What steps will reproduce the problem?
1. Create a repository with name 'test'
2. Work on the repository pushing several commits
3. Delete the repository
4. Recreate the repository with the same name ('test')
5. Go to dashboard

What is the expected output? What do you see instead?
The expected output would be an empty statistic for the repository, instead I see the
statistics of the old repository

What version of the product are you using? On what operating system?
Gitblit v.1.3.2 installed on Windows 2003

Please provide any additional information below.


Reported by l.tagliani on 2013-11-29 09:23:52

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

Did you delete the repository with Gitblit or manually?

Reported by James.Moger on 2013-11-29 16:59:12

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

I did it with Gitblit, using the delete link in the dashboard.

Reported by l.tagliani on 2013-11-29 20:23:52

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

Actually the link I use is in the repository list...

Reported by l.tagliani on 2013-11-29 20:26:58

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

Interesting.  The stats should have been cleared when the repo was deleted - it's part
of the delete mechanism.  While reviewing this, I tweaked the "clear cache" function
to also clear out the metrics cache.  I still have to make time to chase this down.

Reported by James.Moger on 2013-12-01 15:53:25

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

The fix has been merged to master.

Reported by James.Moger on 2014-02-21 20:50:10

  • Status changed: Queued
  • Labels added: Milestone-1.4.0, Ticket-13

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

1.4.0 released.

Reported by James.Moger on 2014-03-09 18:06:21

  • Status changed: Done

@gitblit gitblit closed this as completed Aug 12, 2015
@flaix flaix modified the milestone: 1.4.0 Dec 13, 2016
@flaix flaix removed the Ticket-13 label Jun 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants