summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9b11d24)
raw | patch | inline | side by side (parent: 9b11d24)
author | Matthias Lederhofer <matled@gmx.net> | |
Thu, 12 Apr 2007 18:52:03 +0000 (20:52 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 13 Apr 2007 00:46:51 +0000 (17:46 -0700) |
handle_options did not count the number of used arguments
correctly. When --git-dir was used the extra argument was
not added to the number of handled arguments.
Signed-off-by: Matthias Lederhofer <matled@gmx.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
correctly. When --git-dir was used the extra argument was
not added to the number of handled arguments.
Signed-off-by: Matthias Lederhofer <matled@gmx.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git.c | patch | blob | history |
index 33dd4d39d907a229679a41f9712ee99007a34f3b..7def319e609454cd2389d2fc60caeaa5831d339e 100644 (file)
--- a/git.c
+++ b/git.c
setenv(GIT_DIR_ENVIRONMENT, (*argv)[1], 1);
(*argv)++;
(*argc)--;
+ handled++;
} else if (!prefixcmp(cmd, "--git-dir=")) {
setenv(GIT_DIR_ENVIRONMENT, cmd + 10, 1);
} else if (!strcmp(cmd, "--bare")) {