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

fix: cleanup on clone error #1380

Merged
merged 7 commits into from
Jun 30, 2021

Conversation

strangedev
Copy link
Contributor

Fixes #1283.

When clone fails, the gitdir is removed. The dir is left alone, since it might exist before clone is invoked.
I've also added a test case for this behavior.

As mentioned in the issue, I had to write a helper to recursively delete using the custom FileSystem interface used in this project.

@strangedev strangedev changed the title Fix cleanup on clone error fix: cleanup on clone error Jun 30, 2021
@jcubic jcubic merged commit b0f943a into isomorphic-git:main Jun 30, 2021
@isomorphic-git-bot
Copy link
Member

🎉 This PR is included in version 1.8.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

modesty pushed a commit to modesty/isomorphic-git that referenced this pull request Apr 9, 2024
* chore: fix broken link in README.md (isomorphic-git#1154)

* fix(react-native): fix for "<Intermediate Value>.stream is not a function" errors in React Native (isomorphic-git#1156)

* Added an error handler for cleanup after failed clone

* chore: add comments

* fix: add recursive delete helper & tests

Co-authored-by: Xavier Francisco <xavier.n.francisco@gmail.com>
Co-authored-by: Corbin Crutchley <crutchcorn@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

clone does not clean up on failure
5 participants