Re: Question about submodules and absolute paths
- From
Alexey Pelykh <alexey.pelykh@gmail.com>
- Date
- May 22, 2012, 19:29 UTC
- Message-ID
- <CAOmKuSqRHMS+hvCXL4Ok6ReTPW-3xT9SunGeibjCCCgVk9SU6Q@mail.gmail.com>
- In-Reply-To
- <70952A932255A2489522275A628B97C31348C70D@xmb-sjc-233.amer.cisco.com>
Thanks, Matt.
Indeed this is a workaround, what I was thinking about to use. The thing I wanted actually to discuss whether it worth to research possibility of replacing these absolute paths with relative ones. At least afaik, git repo clone is fully portable (movable) except for submodules. So I wanted to ask community if this is an intended behavior, or it may (and should?) be refined.
Best regards, Alexey
On Tue, May 22, 2012 at 10:25 PM, Matt Seitz (matseitz) <matseitz@cisco.com> wrote:
Show 20 quoted lines
>> From: git-owner@vger.kernel.org [mailto:git-owner@vger.kernel.org] On >> Behalf Of Alexey Pelykh >> >> Not on two machines, on single machine but with two OSes Windows + > Linux + >> shared 'work' partition :) So both Windows and Linux use same repo > clone >> that is stored on a 'work' partition. But due to those absolute paths, > it >> gives '/cygdrive/d/work' on windows and '/media/work' on linux. Thus I >> have to keep 2 copies of each repository that uses submodules (and > that is >> very inconvenient :( ) > > As a workaround, how about using Cygwin's mount table to mount "/media" > to "d:/", or "/media/work" to "d:/work"? > > See: > http://cygwin.com/cygwin-ug-net/using.html#mount-table >