summaryrefslogtreecommitdiff
path: root/t/lib-gpg.sh
diff options
context:
space:
mode:
authorMichael J Gruber <git@drmicha.warpmail.net>2014-10-24 15:23:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-10-27 19:09:36 (GMT)
commite7f224f7800b17304ebc37079c883f04f99a8eef (patch)
treefc0b06c18fd9456964f5099aa8cf05caf5c95f3f /t/lib-gpg.sh
parenteeff891ac756fd97a05476446f15269b714ce4cc (diff)
downloadgit-e7f224f7800b17304ebc37079c883f04f99a8eef.zip
git-e7f224f7800b17304ebc37079c883f04f99a8eef.tar.gz
git-e7f224f7800b17304ebc37079c883f04f99a8eef.tar.bz2
t/lib-gpg: make gpghome files writable
t/lib-gpg.sh copies the test environment's gpg home to the trash directory and makes sure the directoty is writable. Make sure the copied files are writable, too. Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/lib-gpg.sh')
-rwxr-xr-xt/lib-gpg.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/lib-gpg.sh b/t/lib-gpg.sh
index 05824fa..fc5ca99 100755
--- a/t/lib-gpg.sh
+++ b/t/lib-gpg.sh
@@ -18,6 +18,7 @@ else
# No password given, to enable non-interactive operation.
cp -R "$TEST_DIRECTORY"/lib-gpg ./gpghome
chmod 0700 gpghome
+ chmod 0600 gpghome/*
GNUPGHOME="$(pwd)/gpghome"
export GNUPGHOME
test_set_prereq GPG