aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@localhost>2013-01-23 07:30:02 +0900
committerroot <root@localhost>2013-01-23 07:30:02 +0900
commita7f381143e71417dc2bdd8bb3cd236b8580f5748 (patch)
tree24b601ca92c620acab8230efc45f50aad5ebed9a
parent84ac13f5a944d0b5b74dfa58c771aac3072220e0 (diff)
downloadgit-remote-gcrypt-a7f381143e71417dc2bdd8bb3cd236b8580f5748.zip
git-remote-gcrypt-a7f381143e71417dc2bdd8bb3cd236b8580f5748.tar.gz
git-remote-gcrypt-a7f381143e71417dc2bdd8bb3cd236b8580f5748.tar.bz2
use gpg_hash
-rwxr-xr-xgit-remote-gcrypt5
1 files changed, 1 insertions, 4 deletions
diff --git a/git-remote-gcrypt b/git-remote-gcrypt
index e584cc3..b781c4a 100755
--- a/git-remote-gcrypt
+++ b/git-remote-gcrypt
@@ -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"