]> gitweb.fluxo.info Git - scripts.git/commitdiff
Commit: minor fix
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 17 Apr 2014 23:36:26 +0000 (20:36 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 17 Apr 2014 23:36:26 +0000 (20:36 -0300)
commit

diff --git a/commit b/commit
index 4be63d271080b6241a63bb0a97364760c4eb9803..a9ae29c3727fd6c43fe1ade9239e43aadfc14660 100755 (executable)
--- a/commit
+++ b/commit
@@ -88,7 +88,7 @@ function git_push {
 
 # Check user information
 function git_user {
-  if [ -z "`git config user.email`" ] && [ -z "`git config user.name`" ]; then
+  if [ -z "`git config user.email`" ] || [ -z "`git config user.name`" ]; then
     if echo $ARGS | grep -q -- '--config'; then
       if grep -q "^\[user\]" $HOME/.gitconfig; then
         grep -A 2 "^\[user\]" $HOME/.gitconfig >> $GIT_FOLDER/.git/config