git-meta icon indicating copy to clipboard operation
git-meta copied to clipboard

`git meta checkout` doesn't work in a repository with no commits

Open jhedwardyang opened this issue 6 years ago • 0 comments

Repro steps:

git init emptyrepo
cd emptyrepo
git fetch https://github.com/twosigma/git-meta
git meta checkout FETCH_HEAD

Expected:

  • Checks out FETCH_HEAD

Actual:

TypeError: Cannot read property 'id' of null
<trace omitted>

jhedwardyang avatar Apr 17 '19 22:04 jhedwardyang