Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explicitly handle case that we aren’t in a git repo
Let’s be slightly more conservative. This avoids shelling out to git when we know it’s not a repo. Avoids too much dependency on git behavior that may change between versions. Signed-off-by: Stefan Marr <git@stefan-marr.de>
- Loading branch information
Showing
1 changed file
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters