Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Contribute a fairly paranoid update hook
[gitweb.git]
/
git.c
diff --git
a/git.c
b/git.c
index 33dd4d39d907a229679a41f9712ee99007a34f3b..7def319e609454cd2389d2fc60caeaa5831d339e 100644
(file)
--- 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")) {