google / copybara

Copybara: A tool for transforming and moving code between repositories.
Apache License 2.0
2.08k stars 246 forks source link

Commit History not being preserved from initial migration #288

Open Harsh24893 opened 3 months ago

Harsh24893 commented 3 months ago

I am migrating a service from monorepo to it's own repo, for initial copying the files from source repo to destination repo, git commit history of source repo is not being copied over.

Config looks like

core.workflow(
    name = "abc_monorepo",
    mode="ITERATIVE",
    origin = git.origin(
        url = "https://github.xyz.net/abc/ghi.git",
        ref = "main",
        first_parent = False,
    ),
    destination = git.destination(
        url = destinationURL,
        fetch = "main",
        push = "main",
    ),
    origin_files = glob([
        "mno/**"
    ], 
    exclude = []),
    transformations = [],
    destination_files = glob(
        ["**"],
        exclude = []
    ),
    authoring = authoring.pass_thru("ghi <copybara@ghi.com>"),
)
hsudhof commented 3 months ago

Sorry, but I cannot reproduce the issue with the information provided.