fork-dev / Tracker

Bug and issue tracker for Fork for Mac
506 stars 12 forks source link

Stash is empty in shallow clone/fetch repo #2030

Closed miku1958 closed 8 months ago

miku1958 commented 10 months ago

I updated a large repository using git fetch --prune --verbose --depth 1 branch, and as a result, all the stashes disappeared from Fork. git stash list was able to show all the stashes.

DanPristupov commented 10 months ago

Please check if the log file has any errors. The log is located at ~/Library/Logs/Fork.log

miku1958 commented 10 months ago

❌[BtResultExtensions.swift:33] > Bt error: Failed to read stash objects for given oids: Failed to find object 9ffd2c7ce01a751bc621b666526eaae227ad05f0

DanPristupov commented 10 months ago

Thank you. Wait a bit, please.

DanPristupov commented 10 months ago

I just tried that command and it removed some of stashes in my test repository. Most likely it did the same for you, so be prepared for that.

Please wait a bit more. I'll send a link to a build with a hotfix.

DanPristupov commented 10 months ago

Can you try this build, please? https://cdn.fork.dev/prerelease/Fork-2.36.10.dmg

miku1958 commented 10 months ago

ok stashes back.

DanPristupov commented 10 months ago

OK, this fix will be part of the Fork 2.37 update.