Bit --version should be callable in folders that do not have a `.git` folder inside
chris-aeviator opened this issue · 2 comments
chris-aeviator commented
Describe the bug
When running bit --version
in a non-git folder
❯ bit --version
fatal: not a git repository (or any of the parent directories): .git
To Reproduce
Steps to reproduce the behavior:
- Install bit
- create an arbitrary directory
mkdir /tmp/prettyArbitrary
cd /tmp/prettyArbitrary
bit --version
Expected behavior
Bit should output it's version despite the folder it being run from is not a git folder
Desktop (please complete the following information):
- OS: Arch
- Terminal: allacritty
- Shell: zsh
Additional context
as mentioned in #30
shiv6146 commented
@chriswalz I have tried to fix this issue in my PR. Can you please review ? Thanks 👍
chriswalz commented
I'll take a look at it today or tomorrow. Thanks for helping out