summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2019-04-27 14:58:29 +0100
committerPaul Buetow <paul@buetow.org>2019-04-27 14:58:29 +0100
commit488ff3426015fc13d86f62e36c034e5a040716a4 (patch)
treeb74f44d84575a2dddf83e78272f25c915a9e05dd
parent4971ea397b3384d5c6bd5e11313ffd9ad9ff100f (diff)
parent843070e0e6ab0de4a4cd6b14a465e283545d7801 (diff)
Merge branch 'master' of dv.buetow.org:/opt/git/geheim
-rwxr-xr-xgeheim.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/geheim.rb b/geheim.rb
index 2d72c46..7d6ceb8 100755
--- a/geheim.rb
+++ b/geheim.rb
@@ -275,9 +275,10 @@ class Geheim
destination_file = File.basename(index.description)
data = index.get_data
data.export(destination_file: destination_file)
- external_file = external_edit(file: destination_file)
- data.reimport_after_export
- shred_file(file: external_file)
+ edited_file = edit_exported(file: destination_file)
+ data.import(source_file: edited_file)
+ data.commit(force: true)
+ shred_file(file: edited_file)
end
end
end