]> Kevux Git Server - rit/commitdiff
git-gui: Don't offer my miga hack if its configuration file isn't present.
authorShawn O. Pearce <spearce@spearce.org>
Sun, 21 Jan 2007 01:53:37 +0000 (20:53 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 21 Jan 2007 07:54:19 +0000 (02:54 -0500)
I really hate that I have this specialized hack within git-gui, but
its here.  The hack shouldn't be offered unless miga's required .pvcsrc
file is in the top level of the repository's working directory.  If
this file is missing miga will fail to startup properly, and the user
cannot wouldn't be able to use it within this directory.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh

index cfec89b..e2dc931 100755 (executable)
@@ -3232,7 +3232,8 @@ if {[is_MacOSX]} {
 
        # -- Tools Menu
        #
-       if {[file exists /usr/local/miga/lib/gui-miga]} {
+       if {[file exists /usr/local/miga/lib/gui-miga]
+               && [file exists .pvcsrc]} {
        proc do_miga {} {
                global gitdir ui_status_value
                if {![lock_index update]} return