kblincoe / VisualGit_SE701_2019_4

1 stars 0 forks source link

Support shallow clones of repositories #130

Open gnawf opened 5 years ago

gnawf commented 5 years ago

If you try to open a shallow clone of a repository, the graph will not show up as it errors out.

Steps to reproduce:

  1. Run git clone --depth=1 git@github.com:kblincoe/VisualGit_SE701_2019_4.git
  2. 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.