t/lib-gpg: make gpghome files writable
authorMichael J Gruber <git@drmicha.warpmail.net>
Fri, 24 Oct 2014 15:23:32 +0000 (17:23 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Oct 2014 19:09:36 +0000 (12:09 -0700)
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>
t/lib-gpg.sh
index 05824fa8e4d18252f74c51531d6504039986c078..fc5ca99046ee2cd7e126c0c1aeb1455d7bb4e29f 100755 (executable)
@@ -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