Timeout with brew update

5

Isso está me deixando louco. Não consigo mais atualizar minha instalação homebrew. Quando eu executo brew update , ele simplesmente não faz nada e expira.

Eu até tentei reinstalá-lo, mas depois me deparo com o mesmo problema quando uso o instalador padrão. Acabei usando a opção "Untar em qualquer lugar" ( link ), que funcionou muito bem. Mas ainda não consigo atualizar o homebrew.

→ brew update
Initialized empty Git repository in /usr/local/homebrew/.git/
error: Failed connect to github.com:3128; Operation timed out while accessing https://github.com/mxcl/homebrew.git/info/refs?service=git-upload-pack
fatal: HTTP request failed
Error: Failure while executing: git fetch origin

A execução no modo detalhado não ajuda muito:

→ brew update -v
git init 
Initialized empty Git repository in /usr/local/homebrew/.git/
git config core.autocrlf false 
git remote add origin https://github.com/mxcl/homebrew.git 
git fetch origin 
error: Failed connect to github.com:3128; Operation timed out while accessing https://github.com/mxcl/homebrew.git/info/refs?service=git-upload-pack
fatal: HTTP request failed
Error: Failure while executing: git fetch origin

Aqui está a brew --config output:

→ brew --config 
HOMEBREW_VERSION: 0.9.4
ORIGIN: https://github.com/mxcl/homebrew
HEAD: (none)
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/homebrew/Cellar
CPU: quad-core 64-bit ivybridge
OS X: 10.8.4-x86_64
Xcode: 4.6.3
CLT: 4.6.0.0.1.1365549073
LLVM-GCC: build 2336
Clang: 4.2 build 425
X11: N/A
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
    
por afpel 01.09.2013 / 02:48

1 resposta

7

Acabou que eu configurei um proxy para o git há muito tempo atrás quando eu estava trabalhando atrás de um firewall. Para remover o proxy do git, eu simplesmente corri:

→ git config --global http.proxy ''

E tudo funciona bem de novo!

    
por 01.09.2013 / 15:53