Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C clean-build
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 15
    • Issues 15
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • clean-and-itasks
  • clean-build
  • Merge requests
  • !71

Use git rev-list --first-parent when checking out git repositories when CLEANDATE is set

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Camil Staps requested to merge fix-CLEANDATE into master Mar 09, 2021
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 1

This way we only check out a previous state of the requested branch.

For example, if the history looks like:

* (merge) commit 4
|\
| * commit 3
| |
| * commit 2
|/
* commit 1

If a commit before 3 is requested, previously, commit 2 would be selected. With --first-parent, we only follow the left path, and commit 1 is selected. This avoids checking out the intermediate state on a feature branch.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: fix-CLEANDATE