From: Silvio Rhatto Date: Fri, 18 Apr 2014 05:36:25 +0000 (-0300) Subject: Use 'git config --local' X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=187df2100ee28a03ee164c6baf9b613d9bab90aa;p=scripts.git Use 'git config --local' --- diff --git a/commit b/commit index a9ae29c..1d922af 100755 --- 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 --local user.email`" ] || [ -z "`git config --local 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