Commit a0685a4f authored by Dmitry Potapov's avatar Dmitry Potapov Committed by Junio C Hamano

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: default avatarDmitry Potapov <dpotapov@gmail.com>
Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
parent 2e0c2902
...@@ -129,7 +129,7 @@ case "$browser" in ...@@ -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 ...@@ -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 ...@@ -151,6 +151,6 @@ case "$browser" in
eval "$browser_path" "$@" eval "$browser_path" "$@"
;; ;;
dillo) dillo)
nohup "$browser_path" "$@" & "$browser_path" "$@" &
;; ;;
esac esac
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment