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

Re: git-svn doesn't fetch an empty directory with svn:externals

From
Erik Faye-Lund <kusmabite@googlemail.com>
Date
Jan 13, 2010, 15:11 UTC
Message-ID
<40aa078e1001130711gf602ed4pa68cbeb8ba590600@mail.gmail.com>
In-Reply-To
<loom.20100113T124446-187@post.gmane.org>
On Wed, Jan 13, 2010 at 12:49 PM, Michel Jouvin <jouvin@lal.in2p3.fr> wrote:
Show 14 quoted lines
> Hi,
>
> I'm running in a problem when trying to fetch a SVN repository branch that
> contains an empty directory with a SVN property svn:externals attached. This
> directory is missing in the Git repository/checkout. I was unable to find an
> option to have it added. I'd like to get it added to readd the externals using
> the trick described in http://kerneltrap.org/mailarchive/git/2007/5/1/245002.
> Without it, I have to recreate it in git, add it to .gitignore... which is
> painful.
>
> BTW, I didn't find any documentation on empty dirs handling by git-svn. They
> seems to be often removed which is not always desirable. Are they options
> related to this?
>

I don't think this is git-svn's fault, but simply that git doesn't track directories (just files). I guess git-svn could create some sort of place-holder files in empty folders, but currently it doesn't AFAIK.

-- 
Erik "kusma" Faye-Lund
Previous: Michel Jouvin
Message 2 of 2 in “git-svn doesn't fetch an empty directory with svn:externals”
  1. Michel JouvinJan 13, 2010
  2. Erik Faye-LundJan 13, 2010

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.