nimble
nimble copied to clipboard
`nimble run` fails inside git repo with no commits
How to reproduce
- Create a directory
- Run
git init - Run
nimble init -y(with fix from https://github.com/nim-lang/nimble/pull/983) - Run
nimble run
Error: Execution of 'git -C /tmp/db rev-parse HEAD' failed with an exit code 128.
... Details: fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
... Use '--' to separate paths from revisions, like this:
... 'git <command> [<revision>...] -- [<file>...]'
... HEAD
Why does nimble need to use git anyway?