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

av tidy removes branch metadata for branches stacked more than one away from the root #486

Closed
steve-codaio opened this issue Dec 10, 2024 · 2 comments

Comments

@steve-codaio
Copy link

av tidy deletes branches from the av database without logging anything. Have a two branch stack, like so

$ av tree

  * branch-two (HEAD)
  │ No pull request  
  │                  
  * branch-one       
  │ No pull request  
  │                  
  * main             

Then run av tidy

$ av tidy

  ✓ No branch to tidy

Now run tree again

$ av tree     

  * branch-one     
  │ No pull request
  │                
  * main                         

At this point the branch is gone from .git/av/av.db. The branch itself is still there and hasn't been touched, so you can recover by running av adopt (and then av sync if it had a PR associated with it)

@tulioz
Copy link
Contributor

tulioz commented Dec 12, 2024

Thanks for the report! Found the root cause, will push out the fix tomorrow.

@aviator-app aviator-app bot closed this as completed in ac3fc63 Dec 12, 2024
@tulioz
Copy link
Contributor

tulioz commented Dec 12, 2024

This has been released as part of v0.1.2

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

No branches or pull requests

2 participants