Make networking commands to work from a subdirectory.

These are whole-tree operations and there is not much point
making them operable from within a subdirectory, but it is easy
to do so, and using setup_git_directory() upfront helps git://
proxy specification picked up from the correct place.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano
2005-11-26 00:47:59 -08:00
parent b191fa72ea
commit 5a3277133d
8 changed files with 15 additions and 0 deletions

View File

@ -207,6 +207,8 @@ int main(int argc, char **argv)
char *commit_id;
int arg = 1;
setup_git_directory();
while (arg < argc && argv[arg][0] == '-') {
if (argv[arg][1] == 't')
get_tree = 1;