1 Answer
- Newest
- Most votes
- Most comments
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
Relevant content
- asked 2 years ago
- asked a year ago
- asked a year ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 8 months ago
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_component
C function.Not every ref under
refs/keep-around
is failing. Sorefs/keep-around
prefix 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
?