shadowhand/git-encrypt — pull request #25 by kechagia (2013-05-02 15:13:14+00:00)
Title: Exit when directory doesn't contain a .git dir

- this prevents the following error, when initializing in a non-git directory

/usr/local/bin/gitcrypt: line 96: .git/info/attributes: No such file or directory
/usr/local/bin/gitcrypt: line 97: .git/info/attributes: No such file or directory
/usr/local/bin/gitcrypt: line 98: .git/info/attributes: No such file or directory
error: could not lock config file .git/config: No such file or directory
error: could not lock config file .git/config: No such file or directory
error: could not lock config file .git/config: No such file or directory
error: could not lock config file .git/config: No such file or directory
error: could not lock config file .git/config: No such file or directory
error: could not lock config file .git/config: No such file or directory