Elijah Newren
Elijah Newren
Why not use --refname-callback? e.g. ``` git filter-repo --refname-callback ' if not refname.startswith(b'refs/tags/'): return refname # whatever logic you want to rename the tag, including using f-strings and whatnot '...
Sorry for the delay. > I'll try this out. I assume this will work for renaming the lightweight tags, but in general it's still a bit unexpected that the --tag-callback...
> But when I run it, it changes hashes of commits before 1726352100 too. How to prevent this and change just commits after 1726352100 date? Are the other commits whose...
> no. And that's why I ask you. I see all commits changed and duplicated from my initial project commit which is more than 4 years old. Okay, that removes...
No response; I'll assume my previous comment answered your questions. Let me know if that's not the case, and if so, what you found from the investigation suggestions I made
> Looks like, that no changes appeared. And I don't see that any of commits are not the same as my remote Can you verify that by comparing the output...
> > Can you verify that by comparing the output of `git show-ref` and `git ls-remote` ? > > Generally all refs of refs/heads from git ls-remote are in git...
> Receiving objects: 100% (1512904/1512904), 28.49 GiB | 22.01 MiB/s, done. That is a _huge_ repository. There's a significant risk that attempting to repack is completely failing, leaving the rewrite...
Do you have a background job (git maintenance maybe?) which is forcibly fetching the repository and thus updating it with the old history while git-filter-repo is writing the new?
> File "/home/mini-me/.pyenv/versions/3.11.8/lib/python3.11/site-packages/git_filter_repo.py", line 1297, in _parse_tag (tagger_name, tagger_email, tagger_date) = self._parse_user(b'tagger') ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/mini-me/.pyenv/versions/3.11.8/lib/python3.11/site-packages/git_filter_repo.py", line 1084, in _parse_user (name, email, when) = user_regex.match(self._currentline).groups() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no...