Skip to content

Resyncing all projects ignores closed projects #175

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
niosHD opened this issue Apr 28, 2014 · 1 comment
Closed

Resyncing all projects ignores closed projects #175

niosHD opened this issue Apr 28, 2014 · 1 comment
Assignees

Comments

@niosHD
Copy link

niosHD commented Apr 28, 2014

I just discovered a small problem during reactivation of a formerly closed project.

Back story:
I discarded the complete gitolite config when upgrading to v0.7 due to the new key names a few weeks ago. After resyncing of the projects and the keys everything looked fine. What I did not realize at this time was that closed projects where not resynced. This causes a problem when you want to reopen the project later on.

Log:

2014-04-28 13:03:45 +0000 INFO [GitHosting] Project has been reopened, update it : 'autobuild_viewer'
2014-04-28 13:03:45 +0000 INFO [GitWorker] Directive 'include "redmine.conf"' is already present in Gitolite configuration file 'gitolite.conf'
2014-04-28 13:03:45 +0000 INFO [GitWorker] Using Gitolite configuration file : 'redmine.conf'
2014-04-28 13:03:45 +0000 WARN [GitWorker] update_projects : repository 'autobuild_viewer' does not exist in Gitolite, exit !
2014-04-28 13:03:45 +0000 INFO [GitWorker] update_projects : commiting to Gitolite...
2014-04-28 13:03:45 +0000 INFO [GitWorker] update_projects : pushing to Gitolite...
2014-04-28 13:03:45 +0000 INFO [GitWorker] update_projects : done !

The missing gitolite entry can of course be easily fixed by forcing another project resync with the now open project:

2014-04-28 13:07:00 +0000 INFO [GitWorker] update_all_projects_forced : repository 'autobuild_viewer' does not exist in Gitolite, create it ...
2014-04-28 13:07:00 +0000 INFO [GitWorker] update_all_projects_forced : commiting to Gitolite...

However, when resyncing of the projects would also deal with the closed projects from the beginning than this problem would not occur again.

Thanks in advance!

Regards,
niosHD

@n-rodriguez n-rodriguez self-assigned this Apr 28, 2014
@n-rodriguez
Copy link
Contributor

Thanks for your feedback!
You're right. I will look at it.

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