]> Nutra Git (v2) - gamesguru/git-remote-gcrypt.git/commitdiff
rclone
authorShane Jaroch <chown_tee@proton.me>
Thu, 8 Jan 2026 23:35:16 +0000 (18:35 -0500)
committerShane Jaroch <chown_tee@proton.me>
Thu, 8 Jan 2026 23:35:16 +0000 (18:35 -0500)
git-remote-gcrypt

index a667678a2b39afd878bf914e2c3433e3040ead69..87fe8dcace227c0d5b483744558ad2b9983fa6e3 100755 (executable)
@@ -1358,9 +1358,12 @@ elif [ "$NAME" = "gcrypt-clean" ]; then
 
        # Get all files in the remote
        # For rsync backends, list files directly via rsync --list-only (awk extracts filename).
+       # For rclone backends, list files via rclone lsf.
        # For git backends, list files from the gcrypt branch tree.
        if isurl rsync "$URL"; then
                remote_files=$(rsync --no-motd --list-only "$(rsynclocation "$URL")/" | awk '{print $NF}' | grep -vE '^\.$|^\.\.$' || :)
+       elif isurl rclone "$URL"; then
+               remote_files=$(rclone lsf "$(rclonelocation "$URL")" 2>/dev/null || :)
        else
                remote_files=$(git ls-tree --name-only "$Gref" 2>/dev/null || :)
        fi