mainSavannah Administration - Support: sr #107716, please do git for homepages - it's...

 
 

sr #107716: please do git for homepages - it's is easier than cvs for homepages

Submitter:  Sam Liddicott <samjam>
Submitted:  Wed 08 Jun 2011 06:59:26 PM UTC
   
 
Category:  Project webpages Priority:  5 - Normal
Severity:  3 - Normal Status:  Wont Do
Privacy:  Public Assigned to:  mjflick
Operating System:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 11 Jun 2011 04:21:16 PM UTC, comment #4: 

Hi Sam,

At some point, we will be offering either git, cvs, or bzr as a vcs system to manage webpages.  Your proposed solution of using an apache rewrite will not work because it would force every project to use git.  Another problem with your solution is that cgit would be serving the pages, and cgit it a tad resource intensive.

An announcement will be made whenever multiple version control systems are supported for webpages.

Thanks

Michael J. Flickinger <mjflick>
Fri 10 Jun 2011 12:37:19 PM UTC, comment #3: 

Well - although I don't think it is needed, here is some apache re-write rules:

# get the project name
RewriteCond %{REQUEST_FILENAME} ^/p/([^/]+)/
RewriteRule ^/p/([^/]+)/(.*) http://git.savannah.gnu.org/cgit/%1.git/plain/www/$2 [T=text/html,P]

the T=text/html  is ignored but if it worked it would also solve the mime problem

Sam Liddicott <samjam>
Fri 10 Jun 2011 06:50:45 AM UTC, comment #2: 

I was actually quite fine using those URLs.

(The repo.or.cz url can have a tag name instead of the hash that I showed).

Savannah already lets you specify the home-page URL so that bit is already done.

People knowing to use "/mime/" instead of "/plain/" is a lot less than having to know about CVS if you aren't used to CVS (and less people are these days).

Maybe an apache proxy/re-write rule could be written to map and passthrough
http://www.nongnu.org/PROJECT/.* as
http://git.savannah.gnu.org/cgit/PROJECT.git/plain/www/.*

I'll experiment with with and provide a suitable rule. It would depend on mod_proxy being enabled but I can make it dependant on the existance of a "magic file" in the web space to make it easy for it to be turned on or off


Sam Liddicott <samjam>
Thu 09 Jun 2011 11:22:41 PM UTC, comment #1: 


> http://git.savannah.gnu.org/cgit/newfangle.git/plain/www/index.html
> But that's all that needs changing - have a new handler instead
> of /plain/ maybe call it /mime/ and make it pick the mime type
> from the /etc/mime.types file


Sorry, but I'm not seeing that this is "all that needs changing".  Seems like there is the question of a savannah interface to control whether /plain or /mime is used.  Beyond that, presumably you don't want to publicize ugly urls like http://git.savannah.gnu.org/cgit/newfangle.git/mime/www/index.html (or http://repo.or.cz/w/newfangle.git/blob_plain/1638dc03995f5879f0c4c8aeaac117f4fe1f5dfa:/www/docs/literate/literate.html for that matter).

There is some idea of supporting other vcs for the web repos as well as the source repos, but it involves lots of work by lots of people, so don't look for it tomorrow.  Sorry.

Karl Berry <karl>
Site Administrator
Wed 08 Jun 2011 06:59:26 PM UTC, original submission:  

know you only do CVS to manage homepages, but git is simpler; see this URL:

http://repo.or.cz/w/newfangle.git/blob_plain/1638dc03995f5879f0c4c8aeaac117f4fe1f5dfa:/www/docs/literate/literate.html

As long as the git-web management tool can serve up blobs with the right mime type (based on extension?) then it IS a webserver.

As you can see from that URL I had been using repo.or.cz as a web server for the project, and git repo.or.cz maintainer does the same thing.

However the equivalent URL for Savannah only emits a text mime-type in the http response header:

http://git.savannah.gnu.org/cgit/newfangle.git/plain/www/index.html

But that's all that needs changing - have a new handler instead of /plain/ maybe call it /mime/ and make it pick the mime type from the /etc/mime.types file based on the extension in the final part of the URL

Sam Liddicott <samjam>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mjflick (Posted a comment)
  • -email is unavailable- added by karl (Posted a comment)
  • -email is unavailable- added by samjam (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-06-11 mjflick StatusNone Wont Do
        Open/ClosedOpen Closed
    2011-06-09 karl Assigned toNone mjflick

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code