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>
Shawn O. Pearce committed
Jul 18, 2007 at 09:37 UTC
dc5ccdc6cab41e8a4b2ace991b1564fe9bdd172d
1 file changed
+3
-1
git-gui.sh
+3
-1
@@ -1888,7 +1888,9 @@ if {[is_MacOSX]} {
1888
1889
# -- Tools Menu
1890
#
1891
- if {[is_Cygwin] && [file exists /usr/local/miga/lib/gui-miga]} {
1891
+ if {[is_Cygwin]
1892
+ && [is_enabled multicommit]
1893
+ && [file exists /usr/local/miga/lib/gui-miga]} {
1894
proc do_miga {} {
1895
if {![lock_index update]} return
1896
set cmd [list sh --login -c "/usr/local/miga/lib/gui-miga \"[pwd]\""]