Compare commits

...

1 Commits

Author SHA1 Message Date
arzzen
340ed6b078 Fix: show help page when not inside a git repository
Ensure the usage function is called to display the help page if the script is not run inside a git repository.

#168
2024-10-06 14:35:07 +02:00

View File

@@ -986,7 +986,11 @@ function suggestReviewers() {
checkUtils
# Check if we are currently in a git repo.
git rev-parse --is-inside-work-tree > /dev/null
if ! git rev-parse --is-inside-work-tree > /dev/null 2>&1; then
echo "Not inside a git repository."
usage
exit 1
fi
# Parse non-interative commands
if [[ "$#" -eq 1 ]]; then