Re: Cygwin Git cant' Sync File Based repository

2017-10-17 Thread Corinna Vinschen
Please don't top-post.

On Oct 16 13:35, Gary Furash wrote:
> On Mon, Oct 16, 2017 at 1:09 PM, Gary Furash  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


signature.asc
Description: PGP signature


Re: Cygwin Git cant' Sync File Based repository

2017-10-16 Thread Gary Furash
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.

-- gary furash | furashg...@gmail.com, 520-907-2470

On Mon, Oct 16, 2017 at 1:09 PM, Gary Furash  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
>

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Cygwin Git cant' Sync File Based repository

2017-10-16 Thread Gary Furash
>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

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple