aboutsummaryrefslogtreecommitdiff
path: root/git-gui.sh
diff options
context:
space:
mode:
authorHeiko Voigt <hvoigt@hvoigt.net>2010-02-07 22:47:56 +0100
committerShawn O. Pearce <spearce@spearce.org>2010-02-08 07:56:55 -0800
commit9c898a18ea37aa04a84c3a2d18794cf892862702 (patch)
tree94e5b92a40a3881384e600a95c462ac140158621 /git-gui.sh
parentd6db1bbe1151e3acfc6f25258cfa1d48d32dcc89 (diff)
downloadgit-9c898a18ea37aa04a84c3a2d18794cf892862702.tar.gz
git-9c898a18ea37aa04a84c3a2d18794cf892862702.tar.xz
git-gui: check whether systems nice command works or disable it
This fixes issue 394 from msysgit. It seems that the Gnuwin32 project provides a nice command but it returns a "not implemented" error. To help users we now try to execute once and disable it in case it fails. Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-xgit-gui.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 85fbc021f..549f59ba7 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -388,6 +388,9 @@ proc _lappend_nice {cmd_var} {
if {![info exists _nice]} {
set _nice [_which nice]
+ if {[catch {exec $_nice git version}]} {
+ set _nice {}
+ }
}
if {$_nice ne {}} {
lappend cmd $_nice