Web lists-archives.com

Re: Cygwin Git cant' Sync File Based repository




Please don't top-post.

On Oct 16 13:35, Gary Furash wrote:
> On Mon, Oct 16, 2017 at 1:09 PM, Gary Furash <furashgary@xxxxxxxxx> wrote:
> 
> > From windows GIT
> >
> > [gffurash ~] $ git --version
> > git version 2.14.2.windows.3
> > [gffurash ~] $ which git
> > /mingw64/bin/git
> > [gffurash ~] $
> >
> > From Cygwin GIT
> >
> > [gffurash ~] $ git --version
> > git version 2.14.2
> > [gffurash ~] $ which git
> > /usr/bin/git
> > [gffurash ~] $
> >
> >
> > in each case they're referring to a different root: the former
> > C:\Progra~1\Git and the latter C:\Cygwin64
> >
> I think the issue IMHO is that when you use a *file* based repository git
> stores the file path in a certain way, and Cygwin64's git gets confused.

No, that's not Cygwin git's fault.  The problem is that you're using
Windows paths which only work in Git for Windows:

> [gffurash ~/Documents/Projects/wo219161] $ git remote -v
> origin  file://v:/GitSrcCtrl/wo219161 (fetch)
> origin  file://v:/GitSrcCtrl/wo219161 (push)

Change this to:

  $ git remote set-url origin file:///cygdrive/v/GitSrcCtrl/wo219161

or better, because this continues to work even after changing the
cygdrive path prefix:

  $ git remote set-url origin file:///proc/cygdrive/v/GitSrcCtrl/wo219161

POSIX-like paths should work in both git versions.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: signature.asc
Description: PGP signature