mirror of
https://github.com/git/git
synced 2024-11-05 18:59:29 +00:00
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>
This commit is contained in:
parent
9806311592
commit
f7b9f6e440
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue