path: root/
diff options
authorShawn O. Pearce <>2007-09-21 14:58:02 (GMT)
committerShawn O. Pearce <>2007-09-22 01:58:37 (GMT)
commit183a1d1496921e16d316ac523146385af39fcdb0 (patch)
treeed79c704093f65532e8126ad65ad23540026de03 /
parentae0754ac9a24afa2693246222fc078fe9c133b3a (diff)
git-gui: Display message box when we cannot find git in $PATH
If we cannot find the git executable in the user's $PATH then we cannot function correctly. Because we need that to get the version so we can load our library correctly we cannot rely on the library function "error_popup" here, as this is all running before the library path has been configured, so error_popup is not available to us. Signed-off-by: Shawn O. Pearce <>
Diffstat (limited to '')
1 files changed, 5 insertions, 1 deletions
diff --git a/ b/
index 28d7c21..10710e2 100755
--- a/
+++ b/
@@ -498,7 +498,11 @@ proc rmsel_tag {text} {
set _git [_which git]
if {$_git eq {}} {
catch {wm withdraw .}
- error_popup "Cannot find git in PATH."
+ tk_messageBox \
+ -icon error \
+ -type ok \
+ -title [mc "git-gui: fatal error"] \
+ -message [mc "Cannot find git in PATH."]
exit 1