]> gitweb.fluxo.info Git - scripts.git/commitdiff
Use 'git config --local'
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 18 Apr 2014 05:36:25 +0000 (02:36 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 18 Apr 2014 05:36:25 +0000 (02:36 -0300)
commit

diff --git a/commit b/commit
index a9ae29c3727fd6c43fe1ade9239e43aadfc14660..1d922af4c4cfc54e3feedb3286f6f5ff829c3e8e 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 --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