twosigma / twosigma/git-meta

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

Open
#702 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
233
Forks
54
PR merge metrics
No merged PRs in 30d

Description

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

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.