Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 329841

Summary: Add archive download to git.eclipse.org
Product: Community Reporter: Markus Kuppe <bugs.eclipse.org>
Component: GitAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: contact
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Markus Kuppe CLA 2010-11-09 13:19:18 EST
http://git.eclipse.org should allow to download the archive directly from the website (e.g. like Github [0]).
This makes the transition to git a lot easier, as adopters don't need to install git to obtain the code.

[0] https://github.com/ECF/Build/archives/master
Comment 1 Benjamin Cabé CLA 2011-06-10 15:04:04 EDT
The feature seems half-enabled, actually, see my comment in this blog post http://eclipsesource.com/blogs/2011/06/10/you-dont-have-to-use-git-to-access-code-on-github/comment-page-1/#comment-9809

Webmasters, any constraint from your side (possible bandwidth use?) preventing you to fully enable this cgit feature?
Thanks!
Comment 2 Denis Roy CLA 2011-06-10 15:44:35 EDT
http://git.eclipse.org/c/amp/org.eclipse.amp.git/snapshot/master.zip

I didn't even know you could do that .. thanks for the tip.

In cGit I've explicitly enabled the feature:

# Allow download of tar.gz, tar.bz2 and zip-files
snapshots=tar.gz tar.bz2 zip


I guess there's simply not a UI element for it... although, judging by this, it may have been added recently.
http://hjemli.net/git/cgit/log/?showmsg=1&qt=grep&q=snapshot&h=stable&=switch
Comment 3 Benjamin Cabé CLA 2011-06-10 15:58:36 EDT
there _is_ a UI, see http://hjemli.net/git/cgit/commit/?h=stable for example
now that you have explicitly set the "snapshots" directive, I guess the link *should* be visible (if I understand the cgit codebase correctly, the UI is available since about 2007!)
Comment 4 Denis Roy CLA 2011-06-10 16:09:47 EDT
http://www.mail-archive.com/cgit@hjemli.net/msg00031.html

I figured that would be the cause.  I've put the snapshots declaration _before_ scan-path..  I'll refresh the cache and see how that works out.
Comment 6 Benjamin Cabé CLA 2011-06-10 16:17:10 EDT
Awesome :) From my perspective you can mark the bug as FIXED, thank you!
Comment 7 Denis Roy CLA 2011-06-10 16:19:26 EDT
> now that you have explicitly set the "snapshots" directive

FWIW, the 'snapshots' directive has been enabled on git.eclipse.org since day 1.  I had never really looked into why it wasn't working.

Thanks for confirming it now works.