]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Adds PUSH_AFTER_ENCRYPT setting
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 25 Mar 2019 21:38:29 +0000 (18:38 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 25 Mar 2019 21:38:29 +0000 (18:38 -0300)
lib/keyringer/actions/encrypt

index e25ad6ce470eb695d8c0d4d9d8ff4f38eb8d671a..c1d5601219ace2a242603418773fac10cdacd703 100755 (executable)
@@ -126,7 +126,13 @@ fi
 
 # Optional commit depending on the value of this setting
 if [ "$COMMIT_AFTER_ENCRYPT" == "yes" ]; then
-  keyringer_exec git "$BASEDIR" commit -m "Changes for $FILE"
+  FILE="`echo $FILE | sed -e 's|/./||'`"
+  echo Changes for keys/$FILE | keyringer_exec git "$BASEDIR" commit -F -
+fi
+
+# Optional push depending on the value of this setting
+if [ "$PUSH_AFTER_ENCRYPT" == "yes" ]; then
+  keyringer_exec git "$BASEDIR" push
 fi
 
 # Done