isomorphic-git / isomorphic-git/isomorphic-git
Cannot create new branch when master is empty
Open
bug
- Dominant language
- JavaScript
- Stars
- 8.4k
- Forks
- 491
- Avg merge
- 2h 53m
- Merged PRs (30d)
- 7
Description
```js
await git.init({ dir: '/'});
await git.branch({ dir: '/', ref: 'new-branch' });
```
Error: `NoHeadCommitError: Failed to create branch "test" because the HEAD ref could not be resolved to a commit. NoHeadCommitError: Failed to create branch "test" because the HEAD ref could not be resolved to a commit.`
Contributor guide
Assessment
This issue has not been assessed yet.