summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-01-10 10:32:59 -0800
committerJunio C Hamano <gitster@pobox.com>2014-01-10 10:32:59 -0800
commit0c52457b7c6311d004d0fb1f5b7bb7d5cc6dbf4e (patch)
tree3b28497d9c90bbcd5b6e69b43ec4be855ffc4081
parent666b4c2670f013bc1747f1db9b72a4b25266cec2 (diff)
parent82246b765bdfc191aa809cf3dd672de18ad6352a (diff)
downloadgit-0c52457b7c6311d004d0fb1f5b7bb7d5cc6dbf4e.tar.gz
Merge branch 'nd/daemon-informative-errors-typofix'
* nd/daemon-informative-errors-typofix: daemon: be strict at parsing parameters --[no-]informative-errors
-rw-r--r--daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon.c b/daemon.c
index 7bee953de8..503e03906c 100644
--- a/daemon.c
+++ b/daemon.c
@@ -1278,11 +1278,11 @@ int main(int argc, char **argv)
make_service_overridable(arg + 18, 0);
continue;
}
- if (starts_with(arg, "--informative-errors")) {
+ if (!strcmp(arg, "--informative-errors")) {
informative_errors = 1;
continue;
}
- if (starts_with(arg, "--no-informative-errors")) {
+ if (!strcmp(arg, "--no-informative-errors")) {
informative_errors = 0;
continue;
}