Skip to content

Commit

Permalink
Merge branch 'nd/daemon-informative-errors-typofix' into maint
Browse files Browse the repository at this point in the history
The "--[no-]informative-errors" options to "git daemon" were parsed
a bit too loosely, allowing any other string after these option
names.

* nd/daemon-informative-errors-typofix:
  daemon: be strict at parsing parameters --[no-]informative-errors
  • Loading branch information
Junio C Hamano committed Jan 13, 2014
2 parents 3b72885 + 82246b7 commit 7fd90e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7fd90e0

Please sign in to comment.