๐ History Inspector is empty if the git repo doesn't have a remote defined
simonwhitaker opened this issue ยท 1 comments
simonwhitaker commented
Description
If I open a folder in CodeEdit that is under version control with Git, but which doesn't have a remote, the History Inspector view for any file is empty.
To Reproduce
- Create a local test repo:
mkdir test && cd test git init . echo Hello world > test.txt git commit -am "First commit"
- Open the folder you created in CodeEdit
- Open test.txt
- Open the Inspector view and select the History Inspector tab
Expected Behavior
I should see a single commit for test.txt in the History Inspector
Version Information
CodeEdit: 0.1.0-dev (38)
macOS: 14.5
Xcode: 15.4
Additional Context
I'm pretty sure it's because this line is causing getCommitHistory
to throw if there's no remote defined.
Screenshots
austincondiff commented
Is this issue what you are referring to here?
Edit: I see that it is not. But it is somewhat related. We just need to handle this better in both scenarios.