News for hackers. Stuff that matters.
Re:Linus Torvalds: Git proved I could be more than a one-hit... by phonethrowaway on Friday November 01, 2019 @09:24AM (#21418465)
But git already has a built in webserver...

https://git-scm.com/book/en/v2/Git-on-the-Server-GitWeb

Re:Linus Torvalds: Git proved I could be more than a one-hit... by tinix on Friday November 01, 2019 @02:50PM (#21422426)
Yes! This has been there for over a decade! And since there have been hundreds of alternative UI tools that build upon this same tooling.

How are people here saying they've never heard of this? Oof... Typical developers, not even familiar with their tools.

Re:Linus Torvalds: Git proved I could be more than a one-hit... by obituary_latte on Friday November 01, 2019 @09:34AM (#21418562)
TIL! Thanks! Interesting, though, that it doesn't appear to work with MacOS built-in apache (webrick works fine though).
Re:Linus Torvalds: Git proved I could be more than a one-hit... by tinix on Friday November 01, 2019 @02:31PM (#21422218)
Can you run it with python's built in http server? That's native on all OSX installs.

I believe OSX ships with Python2 by default, right?

https://docs.python.org/2/library/cgihttpserver.html

Hmm...

Re:Linus Torvalds: Git proved I could be more than a one-hit... by obituary_latte on Sunday November 03, 2019 @05:04AM (#21433048)
Yup MacOS ships with python. I didn’t try a python server since the ruby webrick server worked fine I just found it curious Apache didn’t work since it also ships in the OS.
Re:Linus Torvalds: Git proved I could be more than a one-hit... by rkuykendall-com on Friday November 01, 2019 @11:35AM (#21419893)
The fact that this is news to people here is confirmation that it was a mistake.
Re:Linus Torvalds: Git proved I could be more than a one-hit... by tinix on Friday November 01, 2019 @02:46PM (#21422374)
I disagree, the fact that it's news to people here means people don't know their tools as well as one might assume.

Implying that it's a mistake because people don't know about it is very odd. Clearly, I know about it, as do others.

It's been possible for 10+ years to serve git repos using gitweb, and mercurial repos using hgweb. We did this in like 2007-2009ish, locally, in our LAN, among developers... because our code couldn't be pushed to a third party for... reasons.

Eventually I did setup our own internal SSH server to serve the repos, but for quick browsing of a team's repo state, using the built in HTTP server is just fine.

Re:Linus Torvalds: Git proved I could be more than a one-hit... by recursive on Friday November 01, 2019 @11:41AM (#21419971)
Are all HN stories about mistakes?
Re:Linus Torvalds: Git proved I could be more than a one-hit... by np_tedious on Friday November 01, 2019 @01:24PM (#21421387)
I definitely did not know that. Thanks!