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

Prevent attempt to create empty commit #9061

Merged
merged 2 commits into from
Feb 15, 2024
Merged

Conversation

bdragon
Copy link
Member

@bdragon bdragon commented Feb 15, 2024

Previously Dependabot::Workspace::Git#store_change would attempt to create a git commit if there were changes to ignored files, which would cause git commit to return a non-zero status and fail the job. As of this change, the method returns early if there are no changes (to un-ignored files) to commit.

Fixes: #9060

Previously #store_change would attempt to create
a git commit with no staged changes if there were
changes to ignored files. As of this change,
the method returns early if there are no changes
(to un-ignored files) to commit.

Fixes: #9060
@bdragon bdragon requested a review from a team as a code owner February 15, 2024 21:49
@bdragon bdragon merged commit a392f3a into main Feb 15, 2024
140 checks passed
@bdragon bdragon deleted the bdragon/5197-git-workspace branch February 15, 2024 22:45
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

Successfully merging this pull request may close these issues.

git-backed workspace attempting to create commit with no changes
3 participants