Skip to content

Commit

Permalink
Mark .gpg files in .git-crypt as binary
Browse files Browse the repository at this point in the history
To remove any possibility of Git treating them as text by accident.

Closes AGWA#55.
  • Loading branch information
AGWA committed Jul 30, 2015
1 parent e0b3bd7 commit c63a727
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,7 @@ int add_gpg_user (int argc, const char** argv)
state_gitattributes_file << "# Do not edit this file. To specify the files to encrypt, create your own\n";
state_gitattributes_file << "# .gitattributes file in the directory where your files are.\n";
state_gitattributes_file << "* !filter !diff\n";
state_gitattributes_file << "*.gpg binary\n";
state_gitattributes_file.close();
if (!state_gitattributes_file) {
std::clog << "Error: unable to write " << state_gitattributes_path << std::endl;
Expand Down

0 comments on commit c63a727

Please sign in to comment.