Skip to content

Handling of merges that contained empty directories #47

Open
@baudren

Description

@baudren

Hello,

we have the following situation:

  • a commit on an SVN branch introduced two empty directories.
  • this branch is later merged on the trunk

Applying the svn2git tool with the option --empty-dirs, the commit on the SVN branch added, as expected, two .gitignore files.

However, the subsequent merge commits did not carry this information, and I sort-of see the point: only the content of the SVN merge commit got transcribed and reproduced, but it creates this weird situation where the master (ex trunk) does not contain exactly the same content at the other branch, despite having done a merge.

Would there be any work-around on this? The easy solution is to reperform the merge, at the end of the migration, where this time the empty .gitignore will be picked, but if there would be a cleaner way, that would be nice.

Thanks in advance, and thank you for the tool!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions