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 dirty cache after failed arweave upload or warp tx #6

Merged
merged 3 commits into from
Nov 22, 2023
Merged

Conversation

7i7o
Copy link
Collaborator

@7i7o 7i7o commented Nov 20, 2023

Cached git remote remained in an inconsistent state after upload to arweave failed or after a failed update to warp

This PR fixes it by cleaning the cached remotes after an unsuccessful push to protocol.land

How to test

  • Clone the repo
  • Build
  • create a symlink to dist/index.js with the name proland-test and add that to your PATH
  • use proland-test://[repo-id] as remote to clone git command (remember to set up your wallet path in the git config)
  • verify that the folder that caches the arweave txId inside .git/.protocol.land/ exists after git pull or git clone
  • try to push a big file from a wallet with no funds to ensure arweave upload fails and check the new messages
  • verify that the folder that caches the arweave txId inside .git/.protocol.land/ is removed

@7i7o 7i7o merged commit fbfe1c9 into main Nov 22, 2023
1 check passed
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.

1 participant