git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git Daemon Dummy: 301 Redirects for git:// to https://

From
Jeff King <peff@peff.net>
Date
Feb 23, 2016, 06:15 UTC
Message-ID
<20160223061517.GA3252@sigill.intra.peff.net>
In-Reply-To
<CAHmME9rTpGNHMKbXD48oBYm136=u79YiHjX5hm8ZYC4xSThJsA@mail.gmail.com>
On Tue, Feb 23, 2016 at 03:32:02AM +0100, Jason A. Donenfeld wrote:
Show 6 quoted lines
> In case anyone else finds this useful, I wrote this:
> 
> https://git.zx2c4.com/git-daemon-dummy/about/
> 
> It's an epoll-based responder for git:// that simply returns an error
> telling users of a new URI.
Neat.
> The purpose is to phase out git-daemon in
> favor of more secure TLS/HTTPS endpoints. With HTTPS certificates now
> being free, seems like this could be useful.

Yeah, the existence of HTTPS (and the fact that the same URL can be both anonymous and authenticated) is nice. Unfortunately, git-over-https is not as efficient as the other protocols, because it's not asynchronously bi-directional. It would probably be relatively simple to make a "gits://" protocol, but I think it would be more interesting still if we could do git-over-websockets, to get the ubiquity benefits of HTTP.

I looked into it once, but was unable to find any reasonably sized explanation of how to implement either the server or client side of websockets. :)

> My personal motivation is that I'd like to just totally kill the
> git-daemon service, but somebody hard coded a URI of mine into a real
> printed textbook [1], so I don't want it to go stale suddenly. So, I
> need some way of informing users of the new URI.

Darn printed books. I thought the Ministry of Truth was supposed to take care of keeping our facts up to date.

-Peff
Previous: Jason A. DonenfeldNext: Duy Nguyen
Message 2 of 7 in “Git Daemon Dummy: 301 Redirects for git:// to https://”
  1. Jason A. DonenfeldFeb 23, 2016
  2. Jeff KingFeb 23, 2016
  3. Duy NguyenFeb 23, 2016
  4. Jason A. DonenfeldFeb 23, 2016
  5. Jason A. DonenfeldFeb 23, 2016
  6. John KeepingFeb 23, 2016
  7. Jason A. DonenfeldFeb 23, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.