tnesbitt210 / interactive-smartlog-issues

12 stars 0 forks source link

Error - git rev-parse ambiguous #11

Closed PyroSA closed 4 months ago

PyroSA commented 4 months ago

Installed version 0.1.35 to check it out as an alternative to Git Graph. VS Code 1.89.1 under Windows 10.

Errors while loading commits.

Error with executing git rev-parse 'refs/heads/branch/name' from C:/code/repo: Error: Command failed: git rev-parse 'refs/heads/branch/name'
fatal: ambiguous argument ''refs/heads/branch/name'': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

Loading commits failure
tnesbitt210 commented 4 months ago

Thanks for the report @PyroSA !

Couple questions...

  1. If you run the rev-parse command in your command line, do you get the same error? (Bonus points: I'm curious if you're able to structure the rev-parse command another way that doesn't result in that error)
  2. Is there anything you can think of that might be unique about that branch? For example, maybe its name conflicts with a tag, or it was created via git checkout --orphan, or anything else like that.
tnesbitt210 commented 4 months ago

I pushed an update - this should be fixed as of v0.1.36

PyroSA commented 4 months ago

Thanks @tnesbitt210 - It works in 0.1.36.

1 - Yes, works fine. 2 - These specific branches were unique, I couldn't spot any obvious issues, hence this issue.

In retrospect I probably should've mentioned that branch/name is anonymizing the actual branch ;)