summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar H. Peter Anvin <hpa@zytor.com>2005-10-20 18:34:58 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2005-10-20 22:46:03 -0700
commit54e31a205c63d8bc8cd3dcf6956f81d3b968ea48 (patch)
tree26fc0da81cf949c3270ee38cc4a53613b48efd88
parentUpdate git-daemon's documentation wrt. new options (diff)
downloadtgif-54e31a205c63d8bc8cd3dcf6956f81d3b968ea48.tar.xz
Fix git-daemon argument-parsing bug
Fix stupid bug in parsing the --init-timeout option. Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r--daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon.c b/daemon.c
index b3bcd7a60a..2b56d7d225 100644
--- a/daemon.c
+++ b/daemon.c
@@ -612,7 +612,7 @@ int main(int argc, char **argv)
if (!strncmp(arg, "--timeout=", 10)) {
timeout = atoi(arg+10);
}
- if (!strncmp(arg, "--init-timeout=", 10)) {
+ if (!strncmp(arg, "--init-timeout=", 15)) {
init_timeout = atoi(arg+15);
}
if (!strcmp(arg, "--")) {