Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • seco-ne/yocto/infrastructure/gitlab-ci
1 result
Show changes
Commits on Source (1)
  • Andrii Sosiuk's avatar
    YT-160: Workaround to prevent CI integration failure in 'merge-yocto' step · ff906931
    Andrii Sosiuk authored
      The GitLab CI integration job frequently fails on the 'merge-yocto' step,
      specifically at the "git fetch" stage.
      The issue occurs because Git fails to fetch the .gitlab-ci submodule
      due to an incorrect reference, likely caused by the shallow clone
      (--depth=1) configuration, which limits the commit history.
    
      Extending the clone depth to --depth=2 helps prevent this error
      by providing a slightly deeper commit history,
      which resolves the reference issue.
    ff906931
......@@ -87,7 +87,7 @@ def clone_project_and_submodule(project: Project, submodule_name, branch=None):
# Checkout project
try:
repo = Repo.clone_from(clone_url.url, project_dir.name, branch=branch, depth=1)
repo = Repo.clone_from(clone_url.url, project_dir.name, branch=branch, depth=2)
except GitCommandError as e:
sys.exit(f"ERROR: could not clone repository\n{e}")
except IndexError:
......