Skip to content
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

Don't push/import a commit to a repo if no changes occurred #13

Open
nazunalika opened this issue May 18, 2023 · 1 comment
Open

Don't push/import a commit to a repo if no changes occurred #13

nazunalika opened this issue May 18, 2023 · 1 comment

Comments

@nazunalika
Copy link
Member

srpmproc will push new commits, even if empty, to a repository. this is sometimes annoying, because it doesn't make it clear to the user if it was already imported at some point in the past. There should be a way for it to see that the repo it is importing to (assuming it is exists) has the same content with no changes occurring with its import (post-patch, if applicable), notify the user, and exit cleanly.

@lecler-i
Copy link

This is my take at it https://github.com/rocky-linux/srpmproc/compare/main...lecler-i:srpmproc:tweak/13-no-change-no-publish?expand=1

It just works, I didn't try any edge-cases tho, just to launch an repo sync multiple time in a row with no changes to my upstream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants