If you try to open a shallow clone of a repository, the graph will not show up as it errors out.
Steps to reproduce:
Run git clone --depth=1 git@github.com:kblincoe/VisualGit_SE701_2019_4.git
Try to open the cloned repository
You'll get an error like below. The hash in the error is referring to the parent of the latest commit, but as we only have a shallow clone with one commit, the parent does not exist.
Uncaught Error: object not found — no match for id (797a0ac3d19fe365dd9679754aca9d073ebabel5)
Expected behavior would be to simply stop and display the commits we have. This is in line with what the Git CLI and other Git clients do.
If you try to open a shallow clone of a repository, the graph will not show up as it errors out.
Steps to reproduce:
git clone --depth=1 git@github.com:kblincoe/VisualGit_SE701_2019_4.git
You'll get an error like below. The hash in the error is referring to the parent of the latest commit, but as we only have a shallow clone with one commit, the parent does not exist.
Expected behavior would be to simply stop and display the commits we have. This is in line with what the Git CLI and other Git clients do.