summaryrefslogtreecommitdiff
path: root/daemon.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2013-12-20 10:53:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-12-20 22:05:07 (GMT)
commit82246b765bdfc191aa809cf3dd672de18ad6352a (patch)
tree26cce411bfbbc1c6fd35a73b41dfdd0a39b8c5fd /daemon.c
parent2f93541d88fadd1ff5307d81c2c8921ee3eea058 (diff)
downloadgit-82246b765bdfc191aa809cf3dd672de18ad6352a.zip
git-82246b765bdfc191aa809cf3dd672de18ad6352a.tar.gz
git-82246b765bdfc191aa809cf3dd672de18ad6352a.tar.bz2
daemon: be strict at parsing parameters --[no-]informative-errors
Use strcmp() instead of starts_with()/!prefixcmp() to stop accepting --informative-errors-just-a-little Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon.c b/daemon.c
index 34916c5..13608c0 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 (!prefixcmp(arg, "--informative-errors")) {
+ if (!strcmp(arg, "--informative-errors")) {
informative_errors = 1;
continue;
}
- if (!prefixcmp(arg, "--no-informative-errors")) {
+ if (!strcmp(arg, "--no-informative-errors")) {
informative_errors = 0;
continue;
}