git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Andreas Dröscher" <git@anticat.ch>
To: git@vger.kernel.org
Subject: git-svn does not honor preserve-empty-dirs
Date: Mon, 14 Dec 2015 22:56:01 +0100	[thread overview]
Message-ID: <566F3AF1.90305@anticat.ch> (raw)

[-- Attachment #1: Type: text/plain, Size: 1636 bytes --]

Hi

I think git-svn 2.6.4 does not behave as intended.

According to the documentation preserve-empty-dirs should ensure that empty-
directories are kept in all cases: "Create a placeholder file in the local Git
repository for each empty directory fetched from Subversion. This includes
directories that become empty by removing all entries in the Subversion
repository (but not the directory itself)."

I've attached an svn repo to demonstrate the issue. Everything goes fine
during the first 3 commits. In commit r4 a file is removed from the demo
folder, but not the directory. This works in svn but not in git.

Steps to Reproduce:
1. Extract tar to a directory of your choice e.g. /tmp/svn/
2. git svn clone --stdlayout --preserve-empty-dirs file:///tmp/svn/
3. Now trunk is empty. However the directory demo should have been preserved.

I'm not a member of the mailing-list. Please CC me.

Best Wishes
Andreas

SVN Commit Log:
------------------------------------------------------------------------
r4 | andreas | 2015-12-14 22:52:49 +0100 (Mo, 14. Dez 2015) | 1 Zeile

empty dir
------------------------------------------------------------------------
r3 | andreas | 2015-12-14 22:52:22 +0100 (Mo, 14. Dez 2015) | 1 Zeile

fill dir
------------------------------------------------------------------------
r2 | andreas | 2015-12-14 22:51:39 +0100 (Mo, 14. Dez 2015) | 1 Zeile

add empty dir demo
------------------------------------------------------------------------
r1 | andreas | 2015-12-14 22:50:46 +0100 (Mo, 14. Dez 2015) | 1 Zeile

initial import
------------------------------------------------------------------------


[-- Attachment #2: svn.tar.bz2 --]
[-- Type: application/x-bzip2, Size: 13869 bytes --]

                 reply	other threads:[~2015-12-14 22:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=566F3AF1.90305@anticat.ch \
    --to=git@anticat.ch \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).