sapling icon indicating copy to clipboard operation
sapling copied to clipboard

Missing `git prune` due to loose objects

Open francois opened this issue 2 years ago • 0 comments

I started getting this error today:

╰─○ sl pull --rebase -d master
pulling from https://github.com/Inspectify/marketplace
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 1 (delta 0), reused 1 (delta 0), pack-reused 0
Unpacking objects: 100% (1/1), 647 bytes | 323.00 KiB/s, done.
From https://github.com/Inspectify/marketplace
   8a2db992..dfd1fe31  dfd1fe31827b750a184e188236a6b50221b4c7c1 -> remote/master
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
warning: The last gc run reported the following. Please correct the root cause
and remove /Users/francois/Projects/marketplace/.sl/store/git/gc.log
Automatic cleanup will not be performed until the file is removed.

warning: There are too many unreachable loose objects; run 'git prune' to remove them.

rebasing 1e7523644e39 "Minimal smoke tests for admin/orders"
1e7523644e39 -> c6c54bd992b9 "Minimal smoke tests for admin/orders"

I went ahead and cd'd into .sl/store/git and ran git prune. Now, when I sl pull, I don't have the error message anymore. I wonder if Sapling can recognize this and take care of it for me?

francois avatar Jun 14 '23 16:06 francois