mirror of
https://github.com/AGWA/git-crypt.git
synced 2026-01-04 17:18:01 -08:00
Fix 'git-crypt init' for newer versions of Git
At some point between Git 1.7.1 and Git 1.8.1.3, both 'git reset' and 'git status' stopped noticing that files were modified after their smudge filter changed. Consequentially, 'git reset --hard HEAD' would not decrypt existing encrypted files in the repo. This commit changes 'git-crypt init' to use 'git checkout -f HEAD /top/of/repo' instead, which does the job.
This commit is contained in:
2
util.hpp
2
util.hpp
@@ -35,7 +35,7 @@
|
||||
#include <ios>
|
||||
#include <iosfwd>
|
||||
|
||||
int exec_command (const char* command, std::string& output);
|
||||
int exec_command (const char* command, std::ostream& output);
|
||||
std::string resolve_path (const char* path);
|
||||
void open_tempfile (std::fstream&, std::ios_base::openmode);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user