diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-09-09 17:20:03 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-09-09 17:20:03 -0300 |
commit | 0de6455d6b8b3b64caf5c4ab96b4166b02cf6655 (patch) | |
tree | 26f551e6467fd2c3ea852f0f8dfcdd91f4f2eec6 /git-hooks | |
parent | 2a5839d898d5f029e7a8c0c276be9bac822e480d (diff) |
Make it clearer
Diffstat (limited to 'git-hooks')
-rwxr-xr-x | git-hooks/post-receive | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git-hooks/post-receive b/git-hooks/post-receive index 6164d81..b78c54d 100755 --- a/git-hooks/post-receive +++ b/git-hooks/post-receive @@ -5,7 +5,7 @@ # cp .ssh/git-hooks/post-receive hackers.git/hooks/ # fail on any error -set -E +set -e # the ssh dir ssh_dir=${HOME}/.ssh @@ -15,7 +15,7 @@ git --git-dir ${ssh_dir}/.git \ --work-tree ${ssh_dir} \ pull origin master -# secure the files +# secure the files (sshd will refuse connections otherwise) chmod 600 ${ssh_dir}/authorized_keys chmod 700 ${ssh_dir} |