Commit c8c8a6ba authored by Steffen Michels's avatar Steffen Michels
Browse files

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
parents 228dcbb4 33bf76de
Pipeline #49797 failed with stage
in 7 minutes and 2 seconds
......@@ -36,7 +36,7 @@ if [ -e $PACKAGE/$OS-$ARCH/git-sources.txt ]; then
if [ -n "${CLEANDATE+set}" ]; then
git clone -b $branch $GIT_BASEURL/$group/$repo.git src/$repo-$branch
(cd src/$repo-$branch
git checkout `git rev-list -n 1 --before="$CLEANDATE" $branch`
git checkout `git rev-list -n 1 --first-parent --before="$CLEANDATE" $branch`
git submodule update --init --recursive)
git clone --recursive -b $branch $GIT_BASEURL/$group/$repo.git src/$repo-$branch
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment