# [PATCH 5/5] git-instaweb: If firefox was not found, just print the URL

3 messages from 2006-07-26 to 2006-07-27. Participants: Johannes Schindelin, Eric Wong.
Thread: https://gitlist.dev/t/4992

## Johannes Schindelin, 2006-07-26 14:34

Subject: [PATCH 5/5] git-instaweb: If firefox was not found, just print the URL
Message-ID: <Pine.LNX.4.63.0607261634200.29667@wbgn013.biozentrum.uni-wuerzburg.de>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0607261634200.29667%40wbgn013.biozentrum.uni-wuerzburg.de

```

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
 git-instaweb.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/git-instaweb.sh b/git-instaweb.sh
index 242b55e..340ab98 100755
--- a/git-instaweb.sh
+++ b/git-instaweb.sh
@@ -245,4 +245,5 @@ esac
 
 start_httpd
 test -z "$browser" && browser=echo
+which "$browser" >/dev/null 2>&1 || browser=echo
 $browser http://127.0.0.1:$port
-- 
1.4.2.rc2.g6a4e

```

## Eric Wong, 2006-07-26 22:40

Subject: Re: [PATCH 5/5] git-instaweb: If firefox was not found, just print the URL
Message-ID: <20060726224049.GA16645@localdomain>
URL: https://gitlist.dev/e/20060726224049.GA16645%40localdomain
In-Reply-To: <Pine.LNX.4.63.0607261634200.29667@wbgn013.biozentrum.uni-wuerzburg.de>

```
Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> 
> Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
> ---
>  git-instaweb.sh |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/git-instaweb.sh b/git-instaweb.sh
> index 242b55e..340ab98 100755
> --- a/git-instaweb.sh
> +++ b/git-instaweb.sh
> @@ -245,4 +245,5 @@ esac
>  
>  start_httpd
>  test -z "$browser" && browser=echo
> +which "$browser" >/dev/null 2>&1 || browser=echo
>  $browser http://127.0.0.1:$port

>From what I hear, 'which' isn't portable on some platforms.

Now this isn't the only place 'which' is used in instaweb, and I've been
meaning to get rid of the other 'which' call in there for a while, but I
haven't had much time to devote to git the past few weeks.  Help here
would be good.

-- 
Eric Wong

```

## Eric Wong, 2006-07-27 01:12

Subject: Re: [PATCH 5/5] git-instaweb: If firefox was not found, just print the URL
Message-ID: <20060727011223.GE31763@localdomain>
URL: https://gitlist.dev/e/20060727011223.GE31763%40localdomain
In-Reply-To: <20060726224049.GA16645@localdomain>

```
Eric Wong <normalperson@yhbt.net> wrote:

Oops, I forgot to run offlineimap for a few hours and was desynced.
Disregard my messages, thanks.

-- 
Eric Wong

```
