From: root Date: Thu, 14 Feb 2013 00:00:00 +0000 (+0000) Subject: Use gpg --with-colons --print-md X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=1227529ff5fb46aaf2bdc7b4b70338a9c486728f;p=gamesguru%2Fgit-remote-gcrypt.git Use gpg --with-colons --print-md --- 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"