]> Nutra Git (v2) - gamesguru/git-remote-gcrypt.git/commitdiff
use gpg_hash
authorroot <root@localhost>
Tue, 22 Jan 2013 22:30:02 +0000 (07:30 +0900)
committerroot <root@localhost>
Tue, 22 Jan 2013 22:30:02 +0000 (07:30 +0900)
git-remote-gcrypt

index e584cc3e9ee3c4abcf061022a11b4ec70762ebc6..b781c4a39d6166e5fd52c1aa5c82802d54dba615 100755 (executable)
@@ -360,9 +360,6 @@ gpg_hash()
        xecho "${hash_%:}"
 }
 
-pack_hash() { gpg_hash "$Hashtype"; }
-
-
 # Pass the branch/ref by pipe to git
 safe_git_rev_parse()
 {
@@ -743,7 +740,7 @@ EOF
                GIT_ALTERNATE_OBJECT_DIRECTORIES=$Localdir \
                        git pack-objects --stdout < "$tmp_objlist" |
                        ENCRYPT "$key_" > "$tmp_encrypted"
-               pack_id=$(pack_hash < "$tmp_encrypted")
+               pack_id=$(gpg_hash "$Hashtype" < "$tmp_encrypted")
 
                append_to @Packlist "pack :${Hashtype}:$pack_id $key_"
                if isnonnull "$r_pack_delete"