summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-04-12 21:04:09 -0700
committerJunio C Hamano <junkio@cox.net>2007-04-12 21:04:09 -0700
commitcd8d918601e28d3aa86b63eeea223b86d71ce1b6 (patch)
treef73e863ab694f1c9aaab91525fd187afcc9f98d1
parent2bfe3cec92be4f5e3bfc0e71ed560df4a726c07b (diff)
parente4b023332c687d824cff41855b41f604ee72e0d2 (diff)
downloadgit-cd8d918601e28d3aa86b63eeea223b86d71ce1b6.tar.gz
Merge branch 'maint'
* maint: handle_options in git wrapper miscounts the options it handled.
-rw-r--r--git.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/git.c b/git.c
index 33dd4d39d9..7def319e60 100644
--- a/git.c
+++ b/git.c
@@ -66,6 +66,7 @@ static int handle_options(const char*** argv, int* argc)
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")) {