• HTTP Cloning

    defunkt 18 Jun 2008

    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

  • Comments

    pjhyett Wed Jun 18 18:56:12 -0700 2008

    Spectacular, especially like the plugin part.

    zerok Thu Jun 19 00:07:28 -0700 2008

    Thank you very much :D Now I can finally also clone repos from at home.

    aunderwo Thu Jun 19 01:49:27 -0700 2008

    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

    defunkt Thu Jun 19 08:24:20 -0700 2008

    @aunderwo I just tried it and it worked for me. Are you still having problems?

    gaffo Thu Jun 19 09:02:44 -0700 2008

    The suited masses thank you.

    scudco Thu Jun 19 14:50:50 -0700 2008

    Thank you thank you thank you!

    myabc Fri Jun 20 07:20:39 -0700 2008

    Are there plans to add this to the UI?

    lgs Fri Jun 20 14:00:13 -0700 2008

    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

    jonbrenner Thu Jun 26 20:46:10 -0700 2008

    Hooray!

    andreasW Tue Jul 01 12:04:08 -0700 2008

    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

    kornysietsma Mon Jul 21 20:02:12 -0700 2008

    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)

    pbhogan Wed Aug 13 09:10:59 -0700 2008

    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?

    paynerc Tue Sep 23 11:17:14 -0700 2008

    To alleviate the “shallow over http or ftp not supported” error, do this instead:

    ./script/plugin install git://github.com/defunkt/cache_fu.git

    gcnovus Wed Sep 24 08:36:56 -0700 2008

    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

    lgs Mon Dec 08 13:32:03 -0800 2008

    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

    nimms Tue Dec 16 17:08:33 -0800 2008

    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

    gaving Mon Jan 05 10:22:31 -0800 2009

    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.

    :(

    tiefox Tue Jan 27 08:04:48 -0800 2009

    I’m also getting this “Cannot obtain needed blob” error, even withou any proxy…

    gpampara Tue Feb 17 01:06:18 -0800 2009

    I know that this is a current issue that is being addressed, but any update on the status of this?

    rogerdpack Wed Feb 25 14:43:36 -0800 2009

    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

    tvisher Thu Feb 26 14:11:24 -0800 2009

    Any updates on this?

    ankopainting Wed Jun 03 20:17:53 -0700 2009
    script/plugin install http://github.com/xgamerx/conditions_fu.git
    Initialized empty Git repository in /home/sysnjk/rails/lists/vendor/plugins/conditions_fu/.git/ 
    warning: Option "depth" is ignored for http://github.com/xgamerx/conditions_fu.git
    
    fatal: http://github.com/xgamerx/conditions_fu.git/info/refs not found: did you run git update-server-info on the server?
    

    any ideas?

    Please log in to comment.