From: Shane Jaroch Date: Wed, 14 Jan 2026 16:39:04 +0000 (-0500) Subject: update X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=4af2b59bd8855bc611e64c0f1800b120436b9f6b;p=gamesguru%2Fgit-remote-gcrypt.git update --- diff --git a/README.rst b/README.rst index 00d5557..4f798e3 100644 --- a/README.rst +++ b/README.rst @@ -74,6 +74,7 @@ Command Reference GCRYPT_TRACE=1 Enable shell tracing (set -x) for rsync/curl commands GCRYPT_FULL_REPACK=1 Force full repack when pushing + Configuration ============= @@ -288,7 +289,7 @@ To detect if a git url is a gcrypt repo, use:: (Legacy syntax ``--check`` is also supported). -Exit status is 0 if the remote uses gcrypt and was decrypted successfully, 1 if it +Exit status is 0 uses gcrypt but could not be decrypted, and 100 if the repo is not encrypted with gcrypt (or could not be accessed). diff --git a/completions/bash/git-remote-gcrypt b/completions/bash/git-remote-gcrypt index baf0715..a4d279e 100644 --- a/completions/bash/git-remote-gcrypt +++ b/completions/bash/git-remote-gcrypt @@ -21,12 +21,12 @@ _git_remote_gcrypt() { # 2. Handle subcommands case "${COMP_WORDS[1]}" in clean) - local remotes=$(git remote -v 2>/dev/null | grep 'gcrypt::' | awk '{print $1}' | sort -u || :) + local remotes=$(git remote -v 2>/dev/null | grep 'gcrypt::' | awk '{print $1}' | sort -u || : COMPREPLY=($(compgen -W " $remotes" -- "$cur")) return 0 ;; check) - local remotes=$(git remote 2>/dev/null || :) + local remotes=$(git remote 2>/dev/null || : COMPREPLY=($(compgen -W "$remotes" -- "$cur")) return 0 ;; diff --git a/completions/zsh/_git-remote-gcrypt b/completions/zsh/_git-remote-gcrypt index 87e0987..d937362 100644 --- a/completions/zsh/_git-remote-gcrypt +++ b/completions/zsh/_git-remote-gcrypt @@ -15,7 +15,7 @@ _git_remote_gcrypt() { case $line[1] in clean) _arguments \ - {clean_flags_zsh} \ + '()' {} '[flag]' \ '*:gcrypt URL: _alternative "remotes:gcrypt remote:($(git remote -v 2>/dev/null | grep "gcrypt::" | awk "{print \$1}" | sort -u))" "files:file:_files"' ;; check) diff --git a/tests/verify-system-install.sh b/tests/verify-system-install.sh index f7bc3ee..0d5e0dd 100755 --- a/tests/verify-system-install.sh +++ b/tests/verify-system-install.sh @@ -40,7 +40,7 @@ else EXPECTED_ID="unknown_OS" fi -if [[ $OUTPUT != *"(deb running on $EXPECTED_ID)"* ]]; then +if [[ $OUTPUT != *"($EXPECTED_ID)"* ]]; then print_err "ERROR: Distro ID '$EXPECTED_ID' missing from version string! (Got: $OUTPUT)" exit 1 fi