Code

peek-remote: honor proxy config even from subdirectory.
authorJunio C Hamano <junkio@cox.net>
Sat, 26 Nov 2005 07:50:21 +0000 (23:50 -0800)
committerJunio C Hamano <junkio@cox.net>
Tue, 29 Nov 2005 07:13:02 +0000 (23:13 -0800)
Use setup_git_directory_gently() at the beginning of peek-remote
so that git:// proxy can be picked up from the configuration
file.

Signed-off-by: Junio C Hamano <junkio@cox.net>
peek-remote.c

index ee49bf3b7b123359153a961c56f5aa3d58515864..a90cf2206925ff51b7e8c799b22c8e6cb09c7fc2 100644 (file)
@@ -27,6 +27,9 @@ int main(int argc, char **argv)
        char *dest = NULL;
        int fd[2];
        pid_t pid;
+       int nongit = 0;
+
+       setup_git_directory_gently(&nongit);
 
        for (i = 1; i < argc; i++) {
                char *arg = argv[i];