From: Silvio Rhatto Date: Tue, 15 Jan 2013 19:27:58 +0000 (-0200) Subject: Minor fix X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=e611f0765fa1ba434ecae80f08342f4a31384360;p=scripts.git Minor fix --- diff --git a/commit b/commit index 3cf9980..f826275 100755 --- a/commit +++ b/commit @@ -87,7 +87,7 @@ function git_push { # Check user information function git_user { if ! grep -q "^\[user\]" $GIT_FOLDER/.git/config; then - if echo $ARGS | grep -q '--config'; then + if echo $ARGS | grep -q -- '--config'; then grep -A 2 "^\[user\]" $HOME/.gitconfig >> $GIT_FOLDER/.git/config else