git/list[1] front-page[2] threads[3] people[4] search[5] about
 

RE: Question about submodules and absolute paths

From
MMMatt Seitz (matseitz) <matseitz@cisco.com>
Date
May 22, 2012, 19:25 UTC
Message-ID
<70952A932255A2489522275A628B97C31348C70D@xmb-sjc-233.amer.cisco.com>
In-Reply-To
<CAOmKuSrmxnHKaip2X87Y0Cp=XtLAtpAwUp71QhZ5od3gbDF2sg@mail.gmail.com>
> 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

Previous: Alexey PelykhNext: Alexey Pelykh
Message 4 of 14 in “Question about submodules and absolute paths”
  1. Alexey PelykhMay 22, 2012
  2. Junio C HamanoMay 22, 2012
  3. Alexey PelykhMay 22, 2012
  4. Matt Seitz (matseitz)May 22, 2012
  5. Alexey PelykhMay 22, 2012
  6. Matt Seitz (matseitz)May 22, 2012
  7. Alexey PelykhMay 22, 2012
  8. Junio C HamanoMay 22, 2012
  9. Jens LehmannMay 23, 2012
  10. Alexey PelykhMay 23, 2012
  11. Jens LehmannMay 23, 2012
  12. Alexey PelykhMay 24, 2012
  13. Johannes SixtMay 23, 2012
  14. Alexey PelykhMay 23, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.