]> Nutra Git (v1) - gamesguru/git-remote-gcrypt.git/commitdiff
two fixes? strip gcrypt & report URLs like git.
authorShane Jaroch <chown_tee@proton.me>
Thu, 8 Jan 2026 23:26:02 +0000 (18:26 -0500)
committerShane Jaroch <chown_tee@proton.me>
Thu, 8 Jan 2026 23:26:12 +0000 (18:26 -0500)
git-remote-gcrypt

index 2cd848dbccecc4ed12f79dda40c14e6d7bdee30a..d6e4fa7a4097699f42df8df1ca678de5b21e7042 100755 (executable)
@@ -227,7 +227,7 @@ resolve_url() {
        local cmd="$1"
        if [ -z "$URL" ]; then
                local remotes
-               remotes=$(git remote -v || :)
+               remotes=$(git remote -v | awk '{print $1 "  " $2}' | sort -u || :)
                echo "Usage: git-remote-gcrypt $cmd [URL|REMOTE]" >&2
                if [ -n "$remotes" ]; then
                        echo "No URL or remote specified. Available remotes:" >&2
@@ -248,6 +248,7 @@ resolve_url() {
                        URL="$potential_url"
                fi
        fi
+       URL="${URL#gcrypt::}"
 }
 
 # setvar is used for named return variables