LucasLarson/git-default-branch

remove check for whether called from within a Git repository

LucasLarson opened this issue · 0 comments

Attempt to “do one thing well”.1 We don’t in fact “want to set our own error message”.

# if we’re not in a Git repository, we want to set our own error message
if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then


Footnotes

  1. Make each program do one thing well. — Doug McIlroy (1978)