aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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