summaryrefslogtreecommitdiff
path: root/peek-remote.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-26 07:50:21 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-11-29 07:13:02 (GMT)
commite44eb3e4c74c5f6c1fca1cf92ddb454ad248c24c (patch)
tree71b3c1ede73afb145cfa7ffb160586e9af2c6f8c /peek-remote.c
parentedf2e37002eeb30a2ccad5db3b3e1fe41cdc7eb0 (diff)
downloadgit-e44eb3e4c74c5f6c1fca1cf92ddb454ad248c24c.zip
git-e44eb3e4c74c5f6c1fca1cf92ddb454ad248c24c.tar.gz
git-e44eb3e4c74c5f6c1fca1cf92ddb454ad248c24c.tar.bz2
peek-remote: honor proxy config even from subdirectory.
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>
Diffstat (limited to 'peek-remote.c')
-rw-r--r--peek-remote.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/peek-remote.c b/peek-remote.c
index ee49bf3..a90cf22 100644
--- a/peek-remote.c
+++ b/peek-remote.c
@@ -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];