Skip to content

Commit 7e508eb

Browse files
committed
git-gui: Don't require a .pvcsrc to create Tools/Migrate menu hack
The Tools/Migrate menu option is a hack just for me. Yes, that's right, git-gui has a hidden feature that really only works for me, and the users that I support within my day-job's great firewall. The menu option is not supported outside of that environment. In the past we only enabled Tools/Migrate if our special local script 'gui-miga' existed in the proper location, and if there was a special '.pvcsrc' in the top level of the working directory. This latter test for the '.pvcsrc' file is now failing, as the file was removed from all Git repositories due to changes made to other tooling within the great firewall's realm. I have changed the test to only work on Cygwin, and only if the special 'gui-miga' is present. This works around the configuration changes made recently within the great firewall's realm, but really this entire Tools/Migrate thing should be abstracted out into some sort of plugin system so other users can extend git-gui as they need. Signed-off-by: Shawn O. Pearce <[email protected]>
1 parent fffaaba commit 7e508eb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

git-gui.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,8 +1545,7 @@ if {[is_MacOSX]} {
15451545

15461546
# -- Tools Menu
15471547
#
1548-
if {[file exists /usr/local/miga/lib/gui-miga]
1549-
&& [file exists .pvcsrc]} {
1548+
if {[is_Cygwin] && [file exists /usr/local/miga/lib/gui-miga]} {
15501549
proc do_miga {} {
15511550
global ui_status_value
15521551
if {![lock_index update]} return

0 commit comments

Comments
 (0)