]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Use --include at git config
authorrhatto <rhatto@ratatosk.fluxo.info>
Fri, 14 Mar 2014 16:22:36 +0000 (13:22 -0300)
committerrhatto <rhatto@ratatosk.fluxo.info>
Fri, 14 Mar 2014 16:22:36 +0000 (13:22 -0300)
keyringer

index 0ec90bee6c4a09661d50651b779d7c9afa0ef8b1..a8dd5c7fee89976b3bee720c58734600df9b35aa 100755 (executable)
--- a/keyringer
+++ b/keyringer
@@ -40,8 +40,8 @@ function keyringer_init {
   fi
 
   # Check user configuration: git might complain if those aren't set
-  if [ -z "`git config --global --get user.name`" ] || [ -z "`git config --global --get user.email`" ]; then
-    echo "Please chose the name and email address that should identify your changes in the new keyring."
+  if [ -z "`git config --global --includes --get user.name`" ] || [ -z "`git config --global --includes --get user.email`" ]; then
+    echo "No git config found, so please chose a name and email address to identify your changes in the new keyring repository."
     read -p "Enter your desired name/pseudonym: " name
     read -p "Enter your desired email address: " email