spacedentist / spr

Submit pull requests for individual, amendable, rebaseable commits to GitHub
https://getcord.github.io/spr/
MIT License
376 stars 33 forks source link

Spr doesn't work well with git worktrees? #151

Open jduan-highnote opened 1 year ago

jduan-highnote commented 1 year ago

I was able to spr init just fine for my repo. However, when I run spr diff from a git worktree, I get this error:

  🛑  object not found - no match for id (aa1d3cfa12a67a60408240eecdb08d4a3a64460a); class=Odb (9); code=NotFound (-3)

Do worktrees confuse spr? Thanks!

spr looks really cool and I really want to use it!

sven-of-cord commented 1 year ago

Interesting. Is there an easy way to repro this?

jduan-highnote commented 1 year ago

Can you try the following?

1. cd into a git repo (say awesome_repo)
2. git worktree add ../awesome_repo2 origin/main
3. cd ../awesome_repo2
4. change some files and make a commit
5. spr diff