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:
@ -424,6 +424,8 @@ int main(int argc, char **argv)
|
||||
int fd[2];
|
||||
pid_t pid;
|
||||
|
||||
setup_git_directory();
|
||||
|
||||
nr_heads = 0;
|
||||
heads = NULL;
|
||||
for (i = 1; i < argc; i++) {
|
||||
|
Reference in New Issue
Block a user