Don't offer my special Tools/Migrate hack unless in multicommit
Users shouldn't see this menu option if they startup a browser or blame from the command line, especially if they are doing so on a bare repository. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
ff749c114a
commit
dc5ccdc6ca
@ -1888,7 +1888,9 @@ if {[is_MacOSX]} {
|
||||
|
||||
# -- Tools Menu
|
||||
#
|
||||
if {[is_Cygwin] && [file exists /usr/local/miga/lib/gui-miga]} {
|
||||
if {[is_Cygwin]
|
||||
&& [is_enabled multicommit]
|
||||
&& [file exists /usr/local/miga/lib/gui-miga]} {
|
||||
proc do_miga {} {
|
||||
if {![lock_index update]} return
|
||||
set cmd [list sh --login -c "/usr/local/miga/lib/gui-miga \"[pwd]\""]
|
||||
|
Loading…
Reference in New Issue
Block a user