aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-15 17:27:58 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-15 17:27:58 -0200
commite611f0765fa1ba434ecae80f08342f4a31384360 (patch)
tree3ab24922f6d57c7141af4fe9470391744612a65b
parent047aa24b29c9355648bdc8633c3face176572adf (diff)
downloadscripts-e611f0765fa1ba434ecae80f08342f4a31384360.tar.gz
scripts-e611f0765fa1ba434ecae80f08342f4a31384360.tar.bz2
Minor fix
-rwxr-xr-xcommit2
1 files changed, 1 insertions, 1 deletions
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