aboutsummaryrefslogtreecommitdiff
path: root/sup
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-08-02 22:20:40 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-08-02 22:20:40 -0300
commitb2bd615615eba504a04c851769e138b554b97688 (patch)
treefbd55265584271f81bfd309b2a103b2cbd67a32f /sup
parent251549d447574f9f20f35c97cb79a24f66eb5c07 (diff)
downloadutils-git-b2bd615615eba504a04c851769e138b554b97688.tar.gz
utils-git-b2bd615615eba504a04c851769e138b554b97688.tar.bz2
Fix: sup, rsup: git repository check
Diffstat (limited to 'sup')
-rwxr-xr-xsup4
1 files changed, 2 insertions, 2 deletions
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