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

Question about submodules and absolute paths

From
Alexey Pelykh <alexey.pelykh@gmail.com>
Date
May 22, 2012, 11:36 UTC
Message-ID
<CAOmKuSpqFrC7G4DbZu=uYDwvU6QqrJUi2aNBnSjy7_PXMMJpjQ@mail.gmail.com>
In-Reply-To
<CAOmKuSoYP9fYORDy5twLpFh7SQ7rc6x2A=F8XjfKMqo-ErCauQ@mail.gmail.com>
Hello,

Is it possible to avoid usage of absolute paths in information about submodule? I'm working with same local repository from both Windows and Linux. But unfortunately absolute paths in modules break all the sweetness, since these paths differ from OS to OS and thus I have to keep two clones of each repository. Regarding absolute paths I refer to are:

In ${REPO}/.git/modules/${MODULE_RELATIVE_PATH}/config file:
[core]
   worktree =  ${FULL_REPO_PATH}/${MODULE_RELATIVE_PATH}

In ${REPO}/${MODULE_RELATIVE_PATH}/.git file: gitdir: ${FULL_REPO_PATH}/.git/modules/${MODULE_RELATIVE_PATH}

Thanks, Alexey

Next: Junio C Hamano
Message 1 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.