Merge branch 'fix-CLEANDATE' into 'master'

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

See merge request !71
2 jobs for docker in 7 minutes and 2 seconds (queued for 1 second)