Skip to content

git-filter-repo output isn't deterministic #705

@barneygale

Description

@barneygale

First, thanks very much for git-filter-repo - it's been a massive help.

The docs say:

Running the same git-filter-repo commands, even if identical, can result in them getting new hashes for commits that are different than your new hashes, and you’ll end up with a mess involving two or more copies of every commit.

Would you mind expanding on what causes these differing results? If it's something I'm able to fix I'll try to put a PR together.

For context: I'm trying to co-ordinate a git rewrite across two organisations that share a git repository. Each organisation has its own primary git remote, and only a subset of branches are shared, so no single party has the complete history. I had hoped that by matching python / git / git-filter-repo versions we'd be able to rewrite in a "compatible" way from both sides, but unfortunately we're hitting the non-determinism that (I realise too late!) is noted in the docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions