From b2bd615615eba504a04c851769e138b554b97688 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 2 Aug 2024 22:20:40 -0300 Subject: Fix: sup, rsup: git repository check --- sup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sup') diff --git a/sup b/sup index 3564418..842ad5a 100755 --- a/sup +++ b/sup @@ -39,9 +39,9 @@ GIT="hit" # done #} -# Check if it is a git repository +# Check if it is a git repository, and wheter we're in the top of it if [ ! -d ".git" ]; then - echo "$BASENAME: not a git repository" + echo "$BASENAME: not a git repository, or not in the top-level of that repository" exit 1 fi -- cgit v1.2.3