Issue
I am encountering an issue with Git-repo integration in my project where the "Discard Changes" button is blocking and doesn't finish. When I checked the app logs, I found that the app is trying to update the Git-repo integration after an upgrade, which caused the issue. After committing the upgrade, I was able to successfully revert the changes.
Resolution
The issue of the "Discard Changes" button not working in a project with git-repo integration was resolved by upgrading Appsmith and the git-repo. After committing the upgrade, the issue was resolved and changes could be successfully reverted. No code examples were necessary for this solution.