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

Clean up local assignment git repo when push fails #171

Closed
meffmadd opened this issue Dec 15, 2023 · 0 comments
Closed

Clean up local assignment git repo when push fails #171

meffmadd opened this issue Dec 15, 2023 · 0 comments
Labels
bug Something isn't working labextension Issue related to grader-labextension
Milestone

Comments

@meffmadd
Copy link
Member

Describe the bug
When a user's local git repo becomes too large, git cannot push the changes, and the push fails. Afterward, we do not remove the commit that was created for the push, which means the oversized commit is still in the git history and will prevent any future push calls.

Expected behavior
The git repo should be cleaned after an error. For a failed push we should revert the commit and bring the repo to the same state as it was before the error.

Potential solution:
git reset HEAD~1 and git gc

@meffmadd meffmadd added bug Something isn't working labextension Issue related to grader-labextension labels Dec 15, 2023
@meffmadd meffmadd added this to the lab-0.2.13 milestone Dec 15, 2023
meffmadd added a commit that referenced this issue Dec 20, 2023
@meffmadd meffmadd closed this as completed Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working labextension Issue related to grader-labextension
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant