1回答
- 新しい順
- 投票が多い順
- コメントが多い順
3
I have added these ref links for your review
https://outlandish.com/blog/how-to-purge-sensitive-data-from-gitlab/ https://gitlab.com/gitlab-org/gitlab/-/issues/4894
- The error message "refusing to create funny ref" typically indicates that Git has encountered a reference name that it considers invalid or unusual.
- refs/keep-around is one of them and is used internally by GitLab for housekeeping purposes, specifically for preventing certain objects from being garbage collected.
- using --mirror option with git push can overwrite refs on the remote repository that don't exist in your local repository
- You could try pushing to CodeCommit without the 'refs/keep-around' references. This can be achieved by using the 'git push' command with an explicit refspec that only includes the refs you want to push

Thank you for your response.
The ref name that is refused, does not contain any unusual characters. I have verified it by passing the ref name to the
check_refname_componentC function.Not every ref under
refs/keep-aroundis failing. Sorefs/keep-aroundprefix itself is not the issue.This is meant as a additional backup copy, so I want it to be an exact copy. So overwriting is the intended behaviour here.
I don't mind losing the refs under
refs/keep-around, but I don't want it to miss any other ref. Can I do this with a negative refspec, that only exclude everything underrefs/keep-around?