From 1227529ff5fb46aaf2bdc7b4b70338a9c486728f Mon Sep 17 00:00:00 2001 From: root Date: Thu, 14 Feb 2013 00:00:00 +0000 Subject: [PATCH] Use gpg --with-colons --print-md --- git-remote-gcrypt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"