aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-04-18 02:36:25 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-04-18 02:36:25 -0300
commit187df2100ee28a03ee164c6baf9b613d9bab90aa (patch)
tree215b05c16c2aea904e9848cea96717b8e8ab52cb
parentaf93ab6f84fc034c03393defec9287f55007b3cb (diff)
downloadscripts-187df2100ee28a03ee164c6baf9b613d9bab90aa.tar.gz
scripts-187df2100ee28a03ee164c6baf9b613d9bab90aa.tar.bz2
Use 'git config --local'
-rwxr-xr-xcommit2
1 files changed, 1 insertions, 1 deletions
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