This message was deleted.
# report-bugs
s
This message was deleted.
g
Context - I exclusively use graphite CLI (no git) and recently I have been getting this message when I commit:
Copy code
See "git help gc" for manual housekeeping.
warning: The last gc run reported the following. Please correct the root cause
and remove .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.
I ignored it while I was trying to get some work out. This morning, I was working on a stack, submitted it (
gt ss
) and after that I tried to switch to a different branch (
gt bco
) but none of the branches I'd created in the approx the last week showed in
gt bco
.
gt bco branch_name
returned
ERROR: Could not find branch branch_name
. The ones I had pushed I could recover with
gt downstack get branch_name
. The ones i hadn't yet pushed to remote I could see in
git branch
but haven't been able to get them into graphite, Even after pushing to remote git,
gt branch track
returns
ERROR: Could not find branch branch_name.
even though I can checkout the branch with git with
git checkout branch_name
p
ah that's so weird, sorry this is happening! will be a question for @Jacob Gold when he's back, sounds like the graphite metadata in your repo might have gotten messed up
j
did you run
git prune
? sounds like your git garbage collection is behind
as for why your branches became untracked, i don't believe it's directly related to the garbage collection issue, but you should be able to fix them with `gt branch track`/`gt downstack track`
g
Sorry, totally missed these replies! Looking at the error message it does seem like something is wrong with my garbage collection. I have now run git prune, but I hadn't before this. Seems like probably something off with my local setup! Everything has been fine since this one-off issue. Will let you know if happens again! The strange part that I thought was worth mentioning was when
gt branch track
returned
ERROR: Could not find branch branch_name.
even though I can checkout the branch with git with
git checkout branch_name
.