Björn Steinbrink wrote: > When using "git help --web" with cygwin, we used to pass the posix path > to the browser, but a native windows browser will expect a windows path > and is unable to make use of the given path. > > So the cygwin port gets its own open_html implementation that handles > the path conversion. > > Reported-by: Steffen Jaeckel <jaeckel@xxxxxxxxx> > Tested-by: Steffen Jaeckel <jaeckel@xxxxxxxxx> > > Signed-off-by: Björn Steinbrink <B.Steinbrink@xxxxxx> > --- > OK, I don't really know if this is the right way to do it. Maybe when > the browser was built for cygwin this breaks? I have no clue, it's > admittedly just the result of a quick glance at the code and some > googling to find the "right" cygwin function... :-/ > Hi Björn, I had the same problem. However, rather than modifying git, I created a firefox wrapper script (in ~/bin) which used the cygpath command line tool to do the path conversion. Also, if you use "git instaweb", you also need to filter out http URLs and pass them through un-molested by cygpath (it turns http://localhost into http:\localhost). My script is clearly a "quick hack" just to get something working for me, but you may find it useful as a starting point for your own ("proper" ;-) script, so I've included it below. HTH, Ramsay Jones -->8-- #!/bin/sh # while test $# != 0 do case "$1" in -version) echo "firefox 1.5.0.2" exit 0 ;; -new-tab) echo "-new-tab not supported" exit 1 ;; --) shift break ;; -*) echo "option '$1' not supported" exit 1 ;; *) break ;; esac shift done if test "$1" = "" then p= else case "$1" in http*) p="$1" ;; *) p="$(cygpath -w "$1")" ;; esac fi "/cygdrive/c/Program Files/Mozilla Firefox/firefox.exe" "$p" exit 0 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html