summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ae0754a)
raw | patch | inline | side by side (parent: ae0754a)
author | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 21 Sep 2007 14:58:02 +0000 (10:58 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sat, 22 Sep 2007 01:58:37 +0000 (21:58 -0400) |
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 <spearce@spearce.org>
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 <spearce@spearce.org>
git-gui.sh | patch | blob | history |
diff --git a/git-gui.sh b/git-gui.sh
index 28d7c21692fe74ebdfe39c31a4cd27745cdf855f..10710e26c69a987fe2a712c1c146442525fefc05 100755 (executable)
--- a/git-gui.sh
+++ b/git-gui.sh
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
}