Skip to content

Error: Cannot export nested tags unless --mark-tags is specified. #1

@mathomp4

Description

@mathomp4

In trying to use RepoExtractor today, I was hit with:

❯ ./extract_repo.bash -r "GEOSldas" -d "GEOSldas_GridComp" --newrepo "GEOSldas_GridComp" --develop --create-repo --push
Cloning into 'GEOSldas_GridComp'...
remote: Enumerating objects: 8314, done.
remote: Counting objects: 100% (1057/1057), done.
remote: Compressing objects: 100% (390/390), done.
remote: Total 8314 (delta 731), reused 833 (delta 662), pack-reused 7257
Receiving objects: 100% (8314/8314), 7.43 MiB | 4.91 MiB/s, done.
Resolving deltas: 100% (4966/4966), done.
path=src/Components/GEOSldas_GridComp/
Parsed 1 commitsfatal: Error: Cannot export nested tags unless --mark-tags is specified.
Parsed 1483 commits
Error: fast-export failed; see above.
fatal: stream ends early
fast-import: dumping crash report to .git/fast_import_crash_55107

After searching the internet, I encountered newren/git-filter-repo#523 and it's accompanying PR: newren/git-filter-repo#526 (Thanks to @vpa1977)

So, before I was using brew's git-filter-repo but now I did:

gh repo clone newren/git-filter-repo
cd git-filter-repo
gh pr checkout 526

and made a symlink to it in ~/bin.

Until @newren updates the main git-filter-repo, this will need to be done when using this script. I'll add info to the README.md.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions