git-web--browse: do not start the browser with nohup

There is no good reason to run GUI browsers using "nohup". It does not
solve any real problem but creates annoying "nohup.out" files in every
directory where git help -w is run.

Signed-off-by: Dmitry Potapov <dpotapov@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Dmitry Potapov 2008-02-09 23:22:22 -08:00 committed by Junio C Hamano
parent 2e0c290299
commit a0685a4f45

View File

@ -129,7 +129,7 @@ case "$browser" in
vers=$(expr "$($browser_path -version)" : '.* \([0-9][0-9]*\)\..*') vers=$(expr "$($browser_path -version)" : '.* \([0-9][0-9]*\)\..*')
NEWTAB='-new-tab' NEWTAB='-new-tab'
test "$vers" -lt 2 && NEWTAB='' test "$vers" -lt 2 && NEWTAB=''
nohup "$browser_path" $NEWTAB "$@" & "$browser_path" $NEWTAB "$@" &
;; ;;
konqueror) konqueror)
case "$(basename "$browser_path")" in case "$(basename "$browser_path")" in
@ -143,7 +143,7 @@ case "$browser" in
eval "$browser_path" newTab "$@" eval "$browser_path" newTab "$@"
;; ;;
*) *)
nohup "$browser_path" "$@" & "$browser_path" "$@" &
;; ;;
esac esac
;; ;;
@ -151,6 +151,6 @@ case "$browser" in
eval "$browser_path" "$@" eval "$browser_path" "$@"
;; ;;
dillo) dillo)
nohup "$browser_path" "$@" & "$browser_path" "$@" &
;; ;;
esac esac