git-remote-gcrypt clean url --force
-
-Stats for gcrypt repos
-======================
-
-To show diagnostics for a remote gcrypt repo, use::
-
- git-remote-gcrypt stat [url|remote]
-
-This command will list the total number of files on the remote, and if
-a valid gcrypt repository is detected, it will also show the number of
-tracked (encrypted) files versus untracked (plain) files.
-
Known issues
============
command mv -f "$fet_head" "$fet_head.$$~" || :
fi
if git fetch -q -f "$1" "$Gref_rbranch:$Gref-fetch" >/dev/null; then
- obj_id="$(git ls-tree "$Gref-fetch" | xgrep -E '\b'"$2"'$' | awk '{print $3}')"
+ obj_id="$(git -c core.quotePath=false ls-tree "$Gref-fetch" | xgrep -E '\b'"$2"'$' | awk '{print $3}')"
if isnonnull "$obj_id" && git cat-file blob "$obj_id"; then
ret_=:
else
return 0
fi
- check_files=$(git ls-tree --name-only "refs/gcrypt/safety-check" 2>/dev/null || :)
+ check_files=$(git -c core.quotePath=false ls-tree --name-only "refs/gcrypt/safety-check" 2>/dev/null || :)
git update-ref -d "refs/gcrypt/safety-check" 2>/dev/null || true
if isnull "$check_files"; then
fi
# Get all files in the remote
- remote_files=$(git ls-tree --name-only "$Gref" 2>/dev/null || :)
+ remote_files=$(git -c core.quotePath=false ls-tree --name-only "$Gref" 2>/dev/null || :)
# If no files, nothing to check
isnonnull "$remote_files" || return 0
# Try fetching master and main to a temporary ref.
if git fetch --quiet "$URL" "refs/heads/master:refs/gcrypt/list-files" 2>/dev/null || \
git fetch --quiet "$URL" "refs/heads/main:refs/gcrypt/list-files" 2>/dev/null; then
- r_files=$(git ls-tree -r --name-only "refs/gcrypt/list-files") || {
+ r_files=$(git -c core.quotePath=false ls-tree -r --name-only "refs/gcrypt/list-files") || {
git update-ref -d "refs/gcrypt/list-files"
return 1
}
# Generate key
gpg --batch --passphrase "" --quick-generate-key "Test <test@test.com>"
-KEYID=$(gpg --list-keys --with-colons "test@test.com" | awk -F: '/^pub:/ { print $5 }')
# 1. Init bare repo as "remote" (creates HEAD, config, description, etc)
print_info "Initializing 'remote' as standard bare repo..."