This message was deleted.
# report-bugs
s
This message was deleted.
s
Copy code
➜  portfolio git:(main) ✗ gt log
➜  portfolio git:(main) ✗
Copy code
gt --version
0.22.3
Copy code
➜  portfolio git:(main) ✗ gt log --debug
2023-08-21T18:30:07.276Z: Spawning (sync) git rev-parse --show-toplevel --git-common-dir --git-dir
2023-08-21T18:30:07.294Z: Finished git rev-parse --show-toplevel --git-common-dir --git-dir
{
  "status": 0,
  "signal": null,
  "stdout": "/Users/samarth/Desktop/code/portfolio\n.git\n.git\n",
  "stderr": ""
}
2023-08-21T18:30:07.295Z: Spawning (sync) git config user.email
2023-08-21T18:30:07.314Z: Finished git config user.email
{
  "status": 0,
  "signal": null,
  "stdout": "<mailto:4997589+samarthdave@users.noreply.github.com|4997589+samarthdave@users.noreply.github.com>\n",
  "stderr": ""
}
➜  portfolio git:(main) ✗
I could have something misconfigured in my zshrc? I ended up uninstalling and reinstalling with homebrew and am trying npm now as well
the
gt status
(and commands passed through "git" work though)
following up here (TLDR: got it working by deleting graphite's
.git/graphite
files)
gt log --debug
yielded
bad parent name: checkout
as the last failed step (had a
git
typo and i think I made a branch named checkout?) either way, something local with my Graphite state got messed up. I tried to resolve by deleting the
.graphite
inside
.git
directory. I then copied those files back in from another repo
cp ../React-Todo/.git/.graphite* ./.git/
and got Graphite working again 🍭 In between those steps, I was running
gt log
but there was no indication that Graphite knew the
./.git/*graphite
files were missing?
m
ran into something similar, i also removed the graphite files
Copy code
rm .git/.graphite_cache_persist        
rm .git/.graphite_repo_config
but was still seeing issues; after
Copy code
git gc --prune=now      
git remote prune origin
& re-removing the graphite files (above), non passthrough commands also started working for me this was on
0.22.7
👍 1
s
hmm so I see these files look pretty important for the cli to work correctly
Copy code
.graphite_cache_persist
.graphite_pr_info
.graphite_repo_config
I wonder if there's a way to regenerate them if you suspect there is corruption/invalid state