Merge pull request #22978 from tchaikov/wip-docker-test-cleanup

test/docker-test-helper.sh: move "cp .git/HEAD" out of loop

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
This commit is contained in:
Josh Durgin 2018-07-23 17:38:41 -07:00 committed by GitHub
commit 3f01b63888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,8 +90,8 @@ function setup_downstream() {
;;
esac
ln -s "$upstream/.git/$x" "$downstream/.git/$x"
cp "$upstream/.git/HEAD" "$downstream/.git/HEAD"
done
cp "$upstream/.git/HEAD" "$downstream/.git/HEAD"
fi
cd $downstream
git reset --hard $ref || return 1