You can now clone public repositories hosted on GitHub over HTTP. This is very slow and should only be used if the git port (9418) is blocked due to a firewall or other tomfoolery.
Try it out:
git clone http://github.com/defunkt/facebox.git
If you’re a Ruby on Rails user, you can now install plugins without Git installed on your machine. This means your loyal blog readers stuck in the past don’t need Git to benefit from your Ruby wizardry.
Try it out:
./script/plugin install http://github.com/defunkt/cache_fu.git


Spectacular, especially like the plugin part.
Thank you very much :D Now I can finally also clone repos from at home.
I get an error with this. Any ideas?
git clone http://github.com/jandot/sprolog.git Initialized empty Git repository in /tmp/sprolog/.git/ Getting alternates list for http://github.com/jandot/sprolog.git Getting pack list for http://github.com/jandot/sprolog.git error: The requested URL returned error: 500 error: Unable to find 18e12606451c23e03d1d117181db047230ed59bc under http://github.com/jandot/sprolog.git Cannot obtain needed object 18e12606451c23e03d1d117181db047230ed59bc
@aunderwo I just tried it and it worked for me. Are you still having problems?
The suited masses thank you.
Thank you thank you thank you!
Are there plans to add this to the UI?
I’m having the same problem as aunderwo. Just work for defunkt examples (facebox and cache_fu) but not for “mephisto”, “hobo” and other plugins. Here some outputs : http://pastie.org/219140
Hooray! <3
Does not work for me. Around here (as I am sure many other places) we have an HTTP proxy server to keep out YouTube, Facebook, Sports sites and worse….
I assume that that is why the above still won’t work for me. Any relief in sight for that? Every widely used on-line protocol has support for firewalls and proxies, without you could not become or stay widely used.
Andreas
It works for me, behind an authenticating http proxy, as long as I set a “http_proxy” environment variable, and make sure ‘curl’ is installed.
However script/plugin does not work – it fails with an error: shallow over http or ftp not supported (git version 1.5.4.3 on Ubuntu 8.04)
Works with facebox, but not on my mine. This is the error I get: $ git clone http://github.com/pbhogan/datagrid.git Initialized empty Git repository in /Library/WebServer/Documents/datagrid/.git/ Cannot get remote repository information. Perhaps git-update-server-info needs to be run there? … Any ideas?
To alleviate the “shallow over http or ftp not supported” error, do this instead:
./script/plugin install git://github.com/defunkt/cache_fu.git
I’m getting what seems to be the same problem as @aunderwo and @lgs. The commonality seems to be “Cannot obtain needed _____” (“tree,” “blob,” “object,” etc.).
I’m also behind a proxy, and I have http_proxy set. c:\…> echo HTT_PROXY http://proxy:80
Hi there, I get a “git clone http error”, trying to clone http://github.com/emk/mephisto.git :
error: Unable to find e9fc1471b8f368184b9197dd1d37599a4efa4c22 under http://github.com/emk/mephisto.git Cannot obtain needed object e9fc1471b8f368184b9197dd1d37599a4efa4c22
( see the full trace: http://gist.github.com/33623 )
Does anybody know what’s the matter with that ? Any suggestion will be appreciate, thanks in advance luca
If you’re stuck behind an ISA proxy server using ntlm auth, use ntlmaps to set up a proxy which git will understand. (http://ntlmaps.sourceforge.net/). You need python to run it.
then set git config -global http.proxy http://127.0.0.1:5865 http cloning then works like a charm
Same errors as the few people above. Not even behind a proxy.
On some repos just getting hit with:
seth:~/Sandbox% git clone http://github.com/vimmpc/dotfiles.git Initialized empty Git repository in /Users/gavin/Sandbox/vimmpc/.git/ fatal: http://github.com/gaving/vimmpc.git/info/refs download error – The requested URL returned error: 500
On others it gets so far then just dies:
error: Unable to find abbb806fe93318f7ecccf9def8905f88cb6c27bc under http://github.com/gaving/dotfiles.git Cannot obtain needed tree abbb806fe93318f7ecccf9def8905f88cb6c27bc while processing commit 2ab6e523adc2e01e807a99979d328ec9ef5e883b. fatal: Fetch failed.
:(
I’m also getting this “Cannot obtain needed blob” error, even withou any proxy…
I know that this is a current issue that is being addressed, but any update on the status of this?
seems to still be broken [though does work for the example in the post]
C:\dev\downloads>git clone http://github.com/oneclick/rubyinstaller.git Initialized empty Git repository in C:/dev/downloads/rubyinstaller/.git/ fatal: http://github.com/oneclick/rubyinstaller.git/info/refs download error – The requested URL returned error: 500
Any updates on this?
any ideas?