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

Maintaining a repository with symlinks

From
RMRobert Munteanu <robert.munteanu@gmail.com>
Date
May 8, 2009, 11:00 UTC
Message-ID
<e60f3a6e0905080400u3bc8d29ewdf6481dc135e17d0@mail.gmail.com>
Hi,

I'm trying to build a repository of the system configuration files in /etc. Named is installed in a chroot jail in /var/named/chroot/var/named/data . I'm interested in getting both the regular etc files and the named ones in the same repository since I use branches to stage changes and it makes life easier when adding an apache virtual host and a name server entry at the same time.

I've tried unifying the directory structure by symlinking them, but git refuses to add that path:

[root@ns1 etc]# ln -s /var/named/chroot/var/named/ named-chroot [root@ns1 etc]# git add named-chroot/* fatal: 'named-chroot/xxx.xxx' is beyond a symbolic link

I've googled for 'git symlink' but I found no relevant information.
Is there another way of joining these directories into one repository?
Thanks,
Robert
Message 1 of 1 in “Maintaining a repository with symlinks”
  1. Robert MunteanuMay 8, 2009

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.