diff --git a/git-remote-gcrypt b/git-remote-gcrypt index 077e420..80bd9d5 100755 --- a/git-remote-gcrypt +++ b/git-remote-gcrypt @@ -16,7 +16,8 @@ genkey() pack_hash() { - gpg --print-md SHA224 | tr -d ' ' | tr A-F a-f + local HASH=$(gpg --with-colons --print-md SHA224 | tr A-F a-f) + HASH=${HASH#:*:}; printf "%s" "${HASH%:}" } LOCALDIR="${GIT_DIR:-.git}/remote-gcrypt"