]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Init: just set git user/mail if needed
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 21 Aug 2014 20:13:38 +0000 (17:13 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 21 Aug 2014 20:13:38 +0000 (17:13 -0300)
keyringer

index a32f15b194f7bcccebc94bcfb186571539c6d744..b5251b90f85265944fa4f6cbe0e2e15b49a8ff6b 100755 (executable)
--- a/keyringer
+++ b/keyringer
@@ -106,8 +106,10 @@ function keyringer_init {
     keyringer_git_ignore 'tmp/*'
 
     # Git configuration
-    git config user.email "$email"
-    git config user.name  "$name"
+    if [ ! -z "$email" ]; then
+      git config user.email "$email"
+      git config user.name  "$name"
+    fi
 
     # Edit default recipients
     echo "Now you have to edit the default recipient configuration to be able to encrypt secrets."