aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorroot <root@localhost>2013-02-14 00:00:00 +0000
committerroot <root@localhost>2013-02-14 00:00:00 +0000
commit3f3c9f05fc7265b8bcee3fa6742839de821a7784 (patch)
treeac403f2bae614ab7f1d8b3e35dbd6cfe11e6a0b3
parent1e0decc8930573470a31ac7caefa5f33bf7fe2bc (diff)
downloadgit-remote-gcrypt-3f3c9f05fc7265b8bcee3fa6742839de821a7784.tar.gz
Fix trap resets
-rwxr-xr-xgit-remote-gcrypt8
1 files changed, 4 insertions, 4 deletions
diff --git a/git-remote-gcrypt b/git-remote-gcrypt
index 9dce8ec..e758173 100755
--- a/git-remote-gcrypt
+++ b/git-remote-gcrypt
@@ -319,7 +319,7 @@ ensure_connected()
exit 1
}
rm -f "$TmpManifest_Enc"
- trap 0
+ trap - EXIT
Masterkey=$(xecho "$manifest_" | head -n 1)
Branchlist=$(xecho "$manifest_" | xgrep -E '^[0-9a-f]{40} ')
@@ -399,7 +399,7 @@ do_fetch()
done
rm -f "$TmpPack_Encrypted"
- trap 0
+ trap - EXIT
echo_git # end with blank line
}
@@ -462,7 +462,7 @@ EOF
rm -f "$TmpPack_Encrypted"
rm -f "$TmpObjlist"
- trap 0
+ trap - EXIT
# Update manifest
echo_info "Encrypting manifest to \"$Recipients\""
@@ -482,7 +482,7 @@ EOF
PUT_FINAL "$URL"
rm -f "$TmpManifest_Enc"
- trap 0
+ trap - EXIT
# ok all updates (not deletes)
xecho "$1" | while read line_