git-gui: Don't offer my miga hack if its configuration file isn't present.
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>
Shawn O. Pearce committed
Jan 20, 2007 at 20:53 UTC
f7b9f6e4406458d522f9b376efdfecadf6b4ab35
1 file changed
+2
-1
git-gui.sh
+2
-1
@@ -3232,7 +3232,8 @@ if {[is_MacOSX]} {
3232
3233
# -- Tools Menu
3234
#
3235
- if {[file exists /usr/local/miga/lib/gui-miga]} {
3235
+ if {[file exists /usr/local/miga/lib/gui-miga]
3236
+ && [file exists .pvcsrc]} {
3237
proc do_miga {} {
3238
global gitdir ui_status_value
3239
if {![lock_index update]} return