Skip to content

--dry-run crashes at revision needing a new tag via a renamed/bridged path; real run at same revision succeeds #174

Description

@mondi04

Environment: git 2.53.0, Ubuntu 24.04 (WSL2). Reproduced with both a fresh master build and the Debian package 1.0.18+git20221225-1build3. SVN source: local svnsync mirror.

Bug: --dry-run --debug-rules crashes (exit 134, git-fast-import has been started once and crashed?) at a revision where a tag must be newly created (add/change dir on an empty dir) via a rule matching an intermediate/renamed SVN path that maps to the same target repo/branch as the final path. Right before the crash:

is a partial branch of repository  branch  subdir BFU/BFU_001/tags/V3.7.0.0/

Per src/svn.cpp (splitPathName/recursiveDumpDir), this debug line prints prevrepository/prevbranch — both empty here, suggesting the previous-branch lookup fails for this case before handing off to fast-import.

Running the exact same revision without --dry-run (isolated via --max-rev) succeeds, exit 0. 100% reproducible both ways, 4+ runs each.

Expected: --dry-run shouldn't crash where a real run succeeds.

Happy to share a minimal repro rules file if useful.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions