shallow clones are bad?
shallow clones are bad?
Posted Sep 2, 2026 14:30 UTC (Wed) by mathstuf (subscriber, #69389)In reply to: shallow clones are bad? by taladar
Parent article: Ryabitsev: Creepy crawlies
CI should not point to branches. The forge should reserve a ref for a CI pipeline to use based on the branch (e.g., GitLab uses refs/pipelines/PIPELINE_ID). Just because the branch was on commit X when the pipeline was created doesn't mean that a job started an hour from now won't get commit Y when asking for the same branch name.
Tags are also not populated (by default) when forking, so you may also need a step to fetch tags from the target project in addition to the code from the source project.
