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>
Heiko Voigt committed
Feb 7, 2010 at 22:47 UTC
9c898a18ea37aa04a84c3a2d18794cf892862702
1 file changed
+3
git-gui.sh
+3
@@ -388,6 +388,9 @@ proc _lappend_nice {cmd_var} {
388
389
if {![info exists _nice]} {
390
set _nice [_which nice]
391
+ if {[catch {exec $_nice git version}]} {
392
+ set _nice {}
393
+ }
394
}
395
if {$_nice ne {}} {
396
lappend cmd $_nice