]> Nutra Git (v1) - gamesguru/git-remote-gcrypt.git/commitdiff
more helpful warning (not error) message; clean msg
authorShane Jaroch <chown_tee@proton.me>
Thu, 8 Jan 2026 23:16:04 +0000 (18:16 -0500)
committerShane Jaroch <chown_tee@proton.me>
Thu, 8 Jan 2026 23:17:36 +0000 (18:17 -0500)
README.rst
completions/templates/README.rst.in
git-remote-gcrypt

index 1753636099918680aeb9d71ce1a9328c87416d24..9ea108ab54243321bbf543536ded8ce7ff8a900d 100644 (file)
@@ -276,6 +276,9 @@ To scan for unencrypted files in a remote gcrypt repo, use::
 
     git-remote-gcrypt clean [url|remote]
 
+.. warning::
+   The clean command is unstable and subject to deprecation or renaming and should not be used in scripts.
+
 If no URL or remote is specified, ``git-remote-gcrypt`` will list all
 available ``gcrypt::`` remotes.
 
index 1753636099918680aeb9d71ce1a9328c87416d24..9ea108ab54243321bbf543536ded8ce7ff8a900d 100644 (file)
@@ -276,6 +276,9 @@ To scan for unencrypted files in a remote gcrypt repo, use::
 
     git-remote-gcrypt clean [url|remote]
 
+.. warning::
+   The clean command is unstable and subject to deprecation or renaming and should not be used in scripts.
+
 If no URL or remote is specified, ``git-remote-gcrypt`` will list all
 available ``gcrypt::`` remotes.
 
index d6ab2539d1451e4182fa80c7ca9f550b1566291f..2cd848dbccecc4ed12f79dda40c14e6d7bdee30a 100755 (executable)
@@ -227,17 +227,18 @@ resolve_url() {
        local cmd="$1"
        if [ -z "$URL" ]; then
                local remotes
-               remotes=$(git remote -v | grep 'gcrypt::' || :)
+               remotes=$(git remote -v || :)
                echo "Usage: git-remote-gcrypt $cmd [URL|REMOTE]" >&2
                if [ -n "$remotes" ]; then
-                       echo "Error: No URL or remote specified. Available gcrypt remotes:" >&2
+                       echo "No URL or remote specified. Available remotes:" >&2
                        echo "$remotes" | sed 's/^/  /' >&2
+                       exit 0
                else
-                       echo "Error: No gcrypt remotes found and no URL/remote specified." >&2
+                       echo "Error: No remotes found and no URL/remote specified." >&2
+                       exit 1
                fi
-               exit 1
        fi
-       
+
        # If it's not a URL, try to resolve as a remote name
        if ! echo "$URL" | grep -q -E '://|::' || [ -n "${URL##*/*}" ]; then
                local potential_url