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

Re: [PATCH 4/5] git-instaweb: Fall back to Apache when LigHTTP was not found

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 26, 2006, 19:57 UTC
Message-ID
<Pine.LNX.4.63.0607262153380.29667@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<7vr708qih4.fsf@assigned-by-dhcp.cox.net>
Hi,
On Wed, 26 Jul 2006, Junio C Hamano wrote:
> Please don't use "which" in scripts.  Consult this thread:
> 
> http://thread.gmane.org/gmane.comp.version-control.git/23382/focus=23394
I remembered vaguely, so I searched in git-instaweb:

$ git grep -n which next:git-instaweb.sh next:git-instaweb.sh:40: [white space...] which $httpd_only >/dev/null

Well, the fallback mechanism might not be that useful anyway: if you have apache, you have to specify the modules path. I'll do a patch instead which exits cleanly if either $httpd or $browser could not be executed, okay?

Ciao, Dscho

Previous: Junio C HamanoNext: Johannes Schindelin
Message 3 of 4 in “git-instaweb: Fall back to Apache when LigHTTP was not found”
  1. 4/5 git-instaweb: Fall back to Apache when LigHTTP was not foundJohannes Schindelin, Jul 26, 2006
  2. Junio C HamanoJul 26, 2006
  3. Johannes SchindelinJul 26, 2006
  4. instaweb: Be more clear if httpd or the browser failJohannes Schindelin, Jul 26, 2006

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.